We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd6a13 commit 771280fCopy full SHA for 771280f
tests/HttpClientInterception.Tests/Examples.cs
@@ -718,8 +718,7 @@ public static async Task Inject_Latency_For_Http_Get_With_Cancellation()
718
using var client = options.CreateHttpClient();
719
720
// Act
721
- await Should.ThrowAsync<TaskCanceledException>(
722
- () => client.GetAsync("http://www.google.co.uk", cts.Token));
+ await client.GetAsync("http://www.google.co.uk", cts.Token);
723
724
// Assert
725
cts.IsCancellationRequested.ShouldBeTrue();
0 commit comments