forked from TrueCloudLab/neoneo-go
core: improve error message in AddBlock test
This commit is contained in:
parent
8266a5ce19
commit
667f346c04
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue