From 221253f4945d9ed2fce31dae0995085885824c9a Mon Sep 17 00:00:00 2001 From: sweexordious Date: Tue, 12 Nov 2024 11:13:49 +0400 Subject: [PATCH] chore: fix test --- core/fetcher_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/fetcher_test.go b/core/fetcher_test.go index ecde519dbc..fe02b21073 100644 --- a/core/fetcher_test.go +++ b/core/fetcher_test.go @@ -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())