mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Guards the temporary files cleanup failure test to Windows only
This commit is contained in:
1 parent
315aed90f0
commit
8f41ca918b
1 file changed
+4
+4
@@ -72,6 +72,10 @@ public class TemporaryFilesCleanupTaskExecutorTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task ExecutePayloadAsync_WhenDeletingTheDirectoryFails_ShouldReturnError()
|
public async Task ExecutePayloadAsync_WhenDeletingTheDirectoryFails_ShouldReturnError()
|
||||||
{
|
{
|
||||||
|
// On non Windows platforms deleting a file that is locked open succeeds, so the failure path can only be forced on Windows.
|
||||||
|
if (!OperatingSystem.IsWindows())
|
||||||
|
return;
|
||||||
|
|
||||||
// Arrange
|
// Arrange
|
||||||
ScheduledJob scheduledJob = _scheduledJobFixture.Create();
|
ScheduledJob scheduledJob = _scheduledJobFixture.Create();
|
||||||
string temporaryDirectory = Path.Combine(AppContext.BaseDirectory, "reading-cache");
|
string temporaryDirectory = Path.Combine(AppContext.BaseDirectory, "reading-cache");
|
||||||
|
|||||||
Reference in new issue
Block a user