From 0428472279fe35545ce0d338b188cb80bfb86fa9 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Mon, 13 Jan 2025 09:58:18 +0100 Subject: [PATCH] Log current test iteration This should help tell when we are deadlocking from test logs if we hit a problem in the future. --- pipe_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipe_test.go b/pipe_test.go index 2dfc373..2722385 100644 --- a/pipe_test.go +++ b/pipe_test.go @@ -644,6 +644,8 @@ func TestListenConnectRace(t *testing.T) { s.Close() } wg.Wait() + + t.Logf("iteration %d", i) } } @@ -684,5 +686,7 @@ func TestCloseRace(t *testing.T) { } _ = c.Close() _ = l.Close() + + t.Logf("iteration %d", i) } }