This commit is contained in:
Sam Ricotta
2022-08-12 15:00:29 +02:00
parent eb16789d70
commit bd4d38f433

View File

@@ -286,13 +286,13 @@ func TestAppCalls(t *testing.T) {
require.Equal(block, blockByHash)
// check that the header matches the block hash
header, err := c.Header(ctx, &apph)
header, err := c.Header(context.Background(), &apph)
require.NoError(err)
require.Equal(t, block.Block.Header, *header.Header)
require.Equal(block.Block.Header, *header.Header)
headerByHash, err := c.HeaderByHash(ctx, block.BlockID.Hash)
headerByHash, err := c.HeaderByHash(context.Background(), block.BlockID.Hash)
require.NoError(err)
require.Equal(t, header, headerByHash)
require.Equal(header, headerByHash)
// now check the results
blockResults, err := c.BlockResults(context.Background(), &txh)