Skip to content

Commit

Permalink
Disable unnecessary warning on Task.WaitAny (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros authored May 2, 2024
1 parent a906437 commit 3b9768a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/YesSql.Tests/CoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6425,9 +6425,9 @@ public virtual async Task ShouldDetectThreadSafetyIssues()
await Task.WhenAll(tasks);
});

var result = Task.WaitAny(throws, Task.Delay(5000));
await Task.WhenAny(throws, Task.Delay(5000));

Assert.Equal(0, result);
Assert.True(throws.IsCompleted, "The timeout was reached before the expected exception was thrown");

async Task DoWork()
{
Expand Down

0 comments on commit 3b9768a

Please sign in to comment.