Skip to content

Commit

Permalink
Fix build (#5728)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie authored Dec 9, 2024
1 parent 953f93f commit 0bf057b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ public async Task Advance_CancelledToken_ThrowsTaskCanceledException()
await Assert.ThrowsAsync<TaskCanceledException>(() => timeProvider.Delay(TimeSpan.FromTicks(1), cts.Token));
}

#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks
[Fact]
public async Task WaitAsync_NegativeTimeout_Throws()
{
Expand All @@ -308,7 +309,6 @@ public async Task WaitAsync_NegativeTimeout_Throws()
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => source.Task.WaitAsync(TimeSpan.FromMilliseconds(-2), timeProvider, CancellationToken.None));
}

#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks
[Fact]
public async Task WaitAsync_ValidTimeout_CompletesSuccessfully()
{
Expand Down

0 comments on commit 0bf057b

Please # to comment.