Skip to content

Commit

Permalink
Fix wrong timeout endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed May 26, 2024
1 parent d2db95b commit a96486c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task Handles_HttpClient_Timeout_Error() {
public async Task Handles_Server_Timeout_Error() {
using var client = new RestClient(_server.Url!);

var request = new RestRequest("404") { Timeout = TimeSpan.FromMilliseconds(500) };
var request = new RestRequest("timeout") { Timeout = TimeSpan.FromMilliseconds(500) };
var response = await client.ExecuteAsync(request);

response.ErrorException.Should().BeOfType<TaskCanceledException>();
Expand Down

0 comments on commit a96486c

Please sign in to comment.