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 bbdefbc commit 38a617bCopy full SHA for 38a617b
test/HttpClientTestHelpers.Tests/TestableHttpMessageHandlerTests.cs
@@ -193,7 +193,7 @@ public async Task SimulateTimout_WhenRequestIsMade_ThrowsTaskCancelationExceptio
193
sut.SimulateTimeout();
194
using var client = new HttpClient(sut);
195
196
- var exception = await Assert.ThrowsAsync<TaskCanceledException>(() => client.GetAsync("https://example.com"));
+ var exception = await Assert.ThrowsAsync<TaskCanceledException>(() => client.GetAsync(new Uri("https://example.com")));
197
Assert.Equal(new OperationCanceledException().Message, exception.Message);
198
}
199
0 commit comments