Skip to content

Commit

Permalink
Fixing xunit warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Sep 26, 2023
1 parent ebc2fdd commit 8bb610d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lombiq.NodeJs.Extensions.Tests/MutexReaderWriterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class MutexReaderWriterTest
public MutexReaderWriterTest(ITestOutputHelper testOutputHelper) => _testOutputHelper = testOutputHelper;

[Fact]
public void SyncReadersAndWriters()
public Task SyncReadersAndWriters()
{
var timeout = TimeSpan.FromMilliseconds(MaxWaitTimeMs);

Expand All @@ -39,7 +39,7 @@ public void SyncReadersAndWriters()
.Select(Task.Run)
.ToArray();

Task.WaitAll(tasks);
return Task.WhenAll(tasks);
}

private Action CreateReaderAction(int actionIndex, TimeSpan timeout) => () =>
Expand Down

0 comments on commit 8bb610d

Please sign in to comment.