Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Oct 1, 2024
1 parent e1a4a36 commit 7a141e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions access/grpc/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ func TestClient_SubscribeBlocks(t *testing.T) {
On("SubscribeBlocksFromStartHeight", ctx, mock.Anything).
Return(stream, nil)

blockCh, errCh, err := c.SubscribeBlocksFromStartHeight(ctx, startHeight, flow.BlockStatusUnknown)
blockCh, errCh, err := c.SubscribeBlocksFromStartHeight(ctx, startHeight, flow.BlockStatusFinalized)
require.NoError(t, err)

wg := sync.WaitGroup{}
Expand Down Expand Up @@ -2214,7 +2214,7 @@ func TestClient_SubscribeBlocks(t *testing.T) {
Return(stream, nil)

startBlockID := convert.MessageToIdentifier(stream.responses[0].Block.Id)
blockCh, errCh, err := c.SubscribeBlocksFromStartBlockID(ctx, startBlockID, flow.BlockStatusUnknown)
blockCh, errCh, err := c.SubscribeBlocksFromStartBlockID(ctx, startBlockID, flow.BlockStatusFinalized)
require.NoError(t, err)

wg := sync.WaitGroup{}
Expand Down Expand Up @@ -2245,7 +2245,7 @@ func TestClient_SubscribeBlocks(t *testing.T) {
On("SubscribeBlocksFromLatest", ctx, mock.Anything).
Return(stream, nil)

blockCh, errCh, err := c.SubscribeBlocksFromLatest(ctx, flow.BlockStatusUnknown)
blockCh, errCh, err := c.SubscribeBlocksFromLatest(ctx, flow.BlockStatusFinalized)
require.NoError(t, err)

wg := sync.WaitGroup{}
Expand Down Expand Up @@ -2275,7 +2275,7 @@ func TestClient_SubscribeBlocks(t *testing.T) {
On("SubscribeBlocksFromLatest", ctx, mock.Anything).
Return(stream, nil)

blockCh, errCh, err := c.SubscribeBlocksFromLatest(ctx, flow.BlockStatusUnknown)
blockCh, errCh, err := c.SubscribeBlocksFromLatest(ctx, flow.BlockStatusFinalized)
require.NoError(t, err)

wg := sync.WaitGroup{}
Expand Down

0 comments on commit 7a141e5

Please sign in to comment.