Skip to content

Commit

Permalink
Add debugging output for flaky test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mna committed Sep 23, 2023
1 parent 2f8a88f commit b87c7cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rehttp_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit b87c7cf

Please sign in to comment.