evidence: fix bug with hashes (#6375)

This commit is contained in:
Callum Waters
2021-04-21 18:50:39 +02:00
committed by GitHub
parent d36a5905a6
commit 5bafedff17
15 changed files with 430 additions and 370 deletions
+5 -1
View File
@@ -37,8 +37,12 @@ func TestBlock_Header(t *testing.T) {
}
resp, err := client.Block(ctx, &block.Header.Height)
require.NoError(t, err)
require.Equal(t, block, resp.Block,
"block mismatch for height %v", block.Header.Height)
"block mismatch for height %d", block.Header.Height)
require.NoError(t, resp.Block.ValidateBasic(),
"block at height %d is invalid", block.Header.Height)
}
})
}