Skip to content

Commit 6de1b02

Browse files
committed
chainntnfs: add verbose logging in unit test
1 parent 9f34a4d commit 6de1b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chainntnfs/bitcoindnotify/bitcoind_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ func syncNotifierWithMiner(t *testing.T, notifier *BitcoindNotifier,
100100
select {
101101
case <-time.After(100 * time.Millisecond):
102102
case <-timeout:
103-
t.Fatalf("timed out waiting to sync notifier")
103+
t.Fatalf("timed out in syncNotifierWithMiner, got "+
104+
"err=%v, minerHeight=%v, bitcoindHeight=%v",
105+
err, minerHeight, bitcoindHeight)
104106
}
105107
}
106108
}

0 commit comments

Comments
 (0)