Skip to content

Commit

Permalink
Fix tests to expect new error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerhardt committed Jul 21, 2023
1 parent afb9986 commit 3037617
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public async Task ServerReset_BeforeResponse_ClientThrows(string scheme)
var url = host.MakeUrl(scheme);
using var client = CreateClient();
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => client.GetAsync(url)).DefaultTimeout();
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8).", exception?.InnerException?.Message);
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8). (HttpProtocolError)", exception?.InnerException?.Message);
await host.StopAsync().DefaultTimeout();
}

Expand Down Expand Up @@ -629,7 +629,7 @@ public async Task ServerReset_AfterHeaders_ClientBodyThrows(string scheme)
response.EnsureSuccessStatusCode();
receivedHeaders.SetResult();
var exception = await Assert.ThrowsAsync<HttpRequestException>(() => response.Content.ReadAsStringAsync()).DefaultTimeout();
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8).", exception?.InnerException?.Message);
Assert.Equal("The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8). (HttpProtocolError)", exception?.InnerException?.Message);
await host.StopAsync().DefaultTimeout();
}

Expand Down

0 comments on commit 3037617

Please sign in to comment.