Skip to content

Commit 771280f

Browse files
committed
Update test to react to behaviour change in net10
1 parent cbd6a13 commit 771280f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/HttpClientInterception.Tests/Examples.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,7 @@ public static async Task Inject_Latency_For_Http_Get_With_Cancellation()
718718
using var client = options.CreateHttpClient();
719719

720720
// Act
721-
await Should.ThrowAsync<TaskCanceledException>(
722-
() => client.GetAsync("http://www.google.co.uk", cts.Token));
721+
await client.GetAsync("http://www.google.co.uk", cts.Token);
723722

724723
// Assert
725724
cts.IsCancellationRequested.ShouldBeTrue();

0 commit comments

Comments
 (0)