From 760a27dd4b6c1668b406b31a579e40eb57a05fdb Mon Sep 17 00:00:00 2001 From: Aayush Date: Fri, 12 May 2023 11:04:55 -0400 Subject: [PATCH] feat: itests: add logs to blockminer.go failure case --- itests/kit/blockminer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itests/kit/blockminer.go b/itests/kit/blockminer.go index cbe352dd5..02876ebb3 100644 --- a/itests/kit/blockminer.go +++ b/itests/kit/blockminer.go @@ -236,7 +236,7 @@ func (bm *BlockMiner) MineBlocksMustPost(ctx context.Context, blocktime time.Dur break } - require.NotEqual(bm.t, i, nloops-1, "block never managed to sync to node") + require.NotEqual(bm.t, i, nloops-1, "block at height %d never managed to sync to node, which is at height %d", target, ts.Height()) time.Sleep(time.Millisecond * 10) } @@ -348,7 +348,7 @@ func (bm *BlockMiner) MineUntilBlock(ctx context.Context, fn *TestFullNode, cb f break } - require.NotEqual(bm.t, i, nloops-1, "block never managed to sync to node") + require.NotEqual(bm.t, i, nloops-1, "block at height %d never managed to sync to node, which is at height %d", epoch, ts.Height()) time.Sleep(time.Millisecond * 10) }