Skip to content

Commit 209f1ed

Browse files
authored
core/services/vrf/v2: mock SubscribeToHeads to avoid test race (#22053)
1 parent 839abb1 commit 209f1ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/services/vrf/v2/integration_v2_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package v2_test
33
import (
44
"encoding/hex"
55
"encoding/json"
6+
"errors"
67
"fmt"
78
"math"
89
"math/big"
@@ -2131,6 +2132,7 @@ func TestStartingCountsV1(t *testing.T) {
21312132
ec.On("ConfiguredChainID").Return(testutils.SimulatedChainID)
21322133
ec.On("BalanceAt", mock.Anything, mock.Anything, mock.Anything).Maybe().Return(big.NewInt(0), nil)
21332134
ec.On("LatestBlockHeight", mock.Anything).Return(big.NewInt(2), nil).Maybe()
2135+
ec.On("SubscribeToHeads", mock.Anything).Maybe().Return(nil, nil, errors.ErrUnsupported)
21342136
txm := makeTestTxm(t, txStore, ks.Eth(), ec)
21352137
legacyChains := evmtest.NewLegacyChains(t, evmtest.TestChainOpts{
21362138
KeyStore: ks.Eth(),

0 commit comments

Comments
 (0)