Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Nov 12, 2024
1 parent e51f237 commit 221253f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ func TestBlockFetcher_GetBlock_and_SubscribeNewBlockEvent(t *testing.T) {
h := newBlockFromChan.Header.Height
block, err := fetcher.GetSignedBlock(ctx, &h)
require.NoError(t, err)
assert.Equal(t, newBlockFromChan.Data, block.Data)
assert.Equal(t, newBlockFromChan.Header, block.Header)
assert.Equal(t, newBlockFromChan.Commit, block.Commit)
assert.Equal(t, newBlockFromChan.ValidatorSet, block.ValidatorSet)
assert.Equal(t, newBlockFromChan.Data, *block.Data)
assert.Equal(t, newBlockFromChan.Header, *block.Header)
assert.Equal(t, newBlockFromChan.Commit, *block.Commit)
assert.Equal(t, newBlockFromChan.ValidatorSet, *block.ValidatorSet)
require.GreaterOrEqual(t, newBlockFromChan.Header.Height, int64(i))
case <-ctx.Done():
require.NoError(t, ctx.Err())
Expand Down

0 comments on commit 221253f

Please sign in to comment.