From 148302623a72724930d32b649aa38a0aec664af0 Mon Sep 17 00:00:00 2001 From: gammazero <11790789+gammazero@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:32:24 -1000 Subject: [PATCH] test fail logging --- bitswap/client/internal/session/session_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitswap/client/internal/session/session_test.go b/bitswap/client/internal/session/session_test.go index 5e6655124..e4e43721c 100644 --- a/bitswap/client/internal/session/session_test.go +++ b/bitswap/client/internal/session/session_test.go @@ -415,6 +415,7 @@ func TestSessionFailingToGetFirstBlock(t *testing.T) { // Tick should take longer consecutiveTickLength := time.Since(startTick) if firstTickLength > consecutiveTickLength { + t.Log("prev tick:", firstTickLength, "this tick:", consecutiveTickLength) t.Fatal("Should have increased tick length after first consecutive tick") } @@ -432,7 +433,8 @@ func TestSessionFailingToGetFirstBlock(t *testing.T) { // Tick should take longer secondConsecutiveTickLength := time.Since(startTick) if consecutiveTickLength > secondConsecutiveTickLength { - t.Fatal("Should have increased tick length after first consecutive tick") + t.Log("prev tick:", consecutiveTickLength, "this tick:", secondConsecutiveTickLength) + t.Fatal("Should have increased tick length after previous consecutive tick") } // Should not have tried to find peers on consecutive ticks