core: improve error message in AddBlock test

This commit is contained in:
Roman Khimov 2019-10-11 14:24:00 +03:00
parent 8266a5ce19
commit 667f346c04

View file

@ -102,7 +102,7 @@ func TestGetBlock(t *testing.T) {
for i := 0; i < len(blocks); i++ {
block, err := bc.GetBlock(blocks[i].Hash())
if err != nil {
t.Fatal(err)
t.Fatalf("can't get block %d: %s, attempt %d", i, err, j)
}
assert.Equal(t, blocks[i].Index, block.Index)
assert.Equal(t, blocks[i].Hash(), block.Hash())