Skip to content

Commit

Permalink
Run on both Win and Linux, but in OuterLoop with longer timeout. (#60149
Browse files Browse the repository at this point in the history
)

Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
  • Loading branch information
carlossanlop and carlossanlop committed Oct 14, 2021
1 parent 1ebec9a commit dac1290
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace System.IO.Tests
public class FileStream_DeleteOnClose : FileSystemTest
{
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsFileLockingEnabled), nameof(PlatformDetection.IsThreadingSupported))]
[OuterLoop]
public async Task OpenOrCreate_DeleteOnClose_UsableAsMutex()
{
var cts = new CancellationTokenSource();
Expand Down Expand Up @@ -69,7 +70,7 @@ public async Task OpenOrCreate_DeleteOnClose_UsableAsMutex()
}

// Wait for 1000 locks.
cts.CancelAfter(TimeSpan.FromSeconds(60)); // Test timeout.
cts.CancelAfter(TimeSpan.FromSeconds(120)); // Test timeout (reason for outerloop)
Volatile.Write(ref locksRemaining, 500);
await Task.WhenAll(tasks);

Expand Down

0 comments on commit dac1290

Please sign in to comment.