Skip to content

Commit

Permalink
feat: itests: add logs to blockminer.go failure case
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed May 12, 2023
1 parent a0ebd8b commit 760a27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itests/kit/blockminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 760a27d

Please sign in to comment.