From b87c7cfc0db48caf954b0ff5d203f39af00188b3 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Sat, 23 Sep 2023 16:23:52 -0400 Subject: [PATCH] Add debugging output for flaky test failure --- rehttp_server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rehttp_server_test.go b/rehttp_server_test.go index 23378e9..466ff04 100644 --- a/rehttp_server_test.go +++ b/rehttp_server_test.go @@ -33,8 +33,10 @@ func assertNetTimeoutErr(t *testing.T, err error) { func assertURLTimeoutErr(t *testing.T, err error) { if assert.NotNil(t, err) { + t.Logf("%T %[1]v", err) uerr, ok := err.(*url.Error) require.True(t, ok) + t.Logf("%T %[1]v", uerr.Err) nerr, ok := uerr.Err.(net.Error) require.True(t, ok) assert.True(t, nerr.Timeout())