Skip to content

Commit 9d32dd6

Browse files
committed
Log current test iteration
This should help tell when we are deadlocking from test logs if we hit a problem in the future. Signed-off-by: Mathieu Champlon <[email protected]>
1 parent 4b491a9 commit 9d32dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pipe_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ func TestListenConnectRace(t *testing.T) {
644644
s.Close()
645645
}
646646
wg.Wait()
647+
648+
t.Logf("iteration %d", i)
647649
}
648650
}
649651

@@ -684,5 +686,7 @@ func TestCloseRace(t *testing.T) {
684686
}
685687
_ = c.Close()
686688
_ = l.Close()
689+
690+
t.Logf("iteration %d", i)
687691
}
688692
}

0 commit comments

Comments
 (0)