evidence: fix bug with hashes (backport #6375) (#6381)

This commit is contained in:
mergify[bot]
2021-04-22 15:05:56 +02:00
committed by GitHub
parent a9b4fac610
commit 353e3a3243
11 changed files with 419 additions and 317 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)
}
})
}