Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Sep 19, 2023
1 parent 2fb8d6d commit 35544ff
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ func TestRegistry_CheckUpkeeps(t *testing.T) {
err error
ethCalls map[string]bool
receipts map[string]*types.Receipt
poller logpoller.LogPoller
ethCallErrors map[string]error
}{
{
Expand Down Expand Up @@ -472,6 +473,15 @@ func TestRegistry_CheckUpkeeps(t *testing.T) {
uid1.String(): true,
},
receipts: map[string]*types.Receipt{},
poller: &mockLogPoller{
GetBlocksRangeFn: func(ctx context.Context, numbers []uint64, qopts ...pg.QOpt) ([]logpoller.LogPollerBlock, error) {
return []logpoller.LogPollerBlock{
{
BlockHash: common.HexToHash("0xcba5cf9e2bb32373c76015384e1098912d9510a72481c78057fcb088209167de"),
},
}, nil
},
},
ethCallErrors: map[string]error{
uid1.String(): fmt.Errorf("error"),
},
Expand All @@ -486,8 +496,9 @@ func TestRegistry_CheckUpkeeps(t *testing.T) {
}
bs.latestBlock.Store(&tc.latestBlock)
e := &EvmRegistry{
lggr: lggr,
bs: bs,
lggr: lggr,
bs: bs,
poller: tc.poller,
}
client := new(evmClientMocks.Client)
for _, i := range tc.inputs {
Expand Down

0 comments on commit 35544ff

Please sign in to comment.