Skip to content

Commit 1483026

Browse files
committed
test fail logging
1 parent 907fad9 commit 1483026

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bitswap/client/internal/session/session_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ func TestSessionFailingToGetFirstBlock(t *testing.T) {
415415
// Tick should take longer
416416
consecutiveTickLength := time.Since(startTick)
417417
if firstTickLength > consecutiveTickLength {
418+
t.Log("prev tick:", firstTickLength, "this tick:", consecutiveTickLength)
418419
t.Fatal("Should have increased tick length after first consecutive tick")
419420
}
420421

@@ -432,7 +433,8 @@ func TestSessionFailingToGetFirstBlock(t *testing.T) {
432433
// Tick should take longer
433434
secondConsecutiveTickLength := time.Since(startTick)
434435
if consecutiveTickLength > secondConsecutiveTickLength {
435-
t.Fatal("Should have increased tick length after first consecutive tick")
436+
t.Log("prev tick:", consecutiveTickLength, "this tick:", secondConsecutiveTickLength)
437+
t.Fatal("Should have increased tick length after previous consecutive tick")
436438
}
437439

438440
// Should not have tried to find peers on consecutive ticks

0 commit comments

Comments
 (0)