From 0bf057b589d0af0b2be44b96c1e2412e425af337 Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Mon, 9 Dec 2024 13:50:13 +1100 Subject: [PATCH] Fix build (#5728) --- .../FakeTimeProviderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/FakeTimeProviderTests.cs b/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/FakeTimeProviderTests.cs index 5c89abae5b8..cf138a91fb3 100644 --- a/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/FakeTimeProviderTests.cs +++ b/test/Libraries/Microsoft.Extensions.TimeProvider.Testing.Tests/FakeTimeProviderTests.cs @@ -294,6 +294,7 @@ public async Task Advance_CancelledToken_ThrowsTaskCanceledException() await Assert.ThrowsAsync(() => timeProvider.Delay(TimeSpan.FromTicks(1), cts.Token)); } +#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks [Fact] public async Task WaitAsync_NegativeTimeout_Throws() { @@ -308,7 +309,6 @@ public async Task WaitAsync_NegativeTimeout_Throws() await Assert.ThrowsAsync(() => source.Task.WaitAsync(TimeSpan.FromMilliseconds(-2), timeProvider, CancellationToken.None)); } -#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks [Fact] public async Task WaitAsync_ValidTimeout_CompletesSuccessfully() {