mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
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