Skip to content

Commit 38a617b

Browse files
committed
Fixes build warning
1 parent bbdefbc commit 38a617b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/HttpClientTestHelpers.Tests/TestableHttpMessageHandlerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public async Task SimulateTimout_WhenRequestIsMade_ThrowsTaskCancelationExceptio
193193
sut.SimulateTimeout();
194194
using var client = new HttpClient(sut);
195195

196-
var exception = await Assert.ThrowsAsync<TaskCanceledException>(() => client.GetAsync("https://example.com"));
196+
var exception = await Assert.ThrowsAsync<TaskCanceledException>(() => client.GetAsync(new Uri("https://example.com")));
197197
Assert.Equal(new OperationCanceledException().Message, exception.Message);
198198
}
199199
}

0 commit comments

Comments
 (0)