Skip to content

Commit

Permalink
Log current test iteration
Browse files Browse the repository at this point in the history
This should help tell when we are deadlocking from test logs if we hit a problem in the future.
  • Loading branch information
mat007 committed Jan 13, 2025
1 parent 21fd8bb commit 0428472
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,8 @@ func TestListenConnectRace(t *testing.T) {
s.Close()
}
wg.Wait()

t.Logf("iteration %d", i)
}
}

Expand Down Expand Up @@ -684,5 +686,7 @@ func TestCloseRace(t *testing.T) {
}
_ = c.Close()
_ = l.Close()

t.Logf("iteration %d", i)
}
}

0 comments on commit 0428472

Please sign in to comment.