Skip to content

Commit 0b2f440

Browse files
committed
Prints to find out what is wrong
1 parent 513ff1a commit 0b2f440

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,7 @@ await LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
22162216
// WinHTTP validates the input before opening connection whereas SocketsHttpHandler opens connection first and validates only when writing to the wire.
22172217
acceptConnection.SetResult(!IsWinHttpHandler);
22182218
var ex = await Assert.ThrowsAnyAsync<Exception>(() => client.SendAsync(request));
2219+
Console.WriteLine($"Client exception: {ex}");
22192220
if (IsWinHttpHandler)
22202221
{
22212222
var fex = Assert.IsType<FormatException>(ex);

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTestBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected async Task IgnoreExceptions(Func<Task> func)
4242
catch (Exception ex)
4343
{
4444
_output.WriteLine($"Ignored exception:{Environment.NewLine}{ex}");
45+
Console.WriteLine($"Ignored exception:{Environment.NewLine}{ex}");
4546
}
4647
}
4748

0 commit comments

Comments
 (0)