Skip to content

Commit

Permalink
Add missing mock to unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <[email protected]>
  • Loading branch information
nguyer authored and peterbroadhurst committed Apr 4, 2022
1 parent 0f19286 commit 95526ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/events/submanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func TestActionChildCleanup(t *testing.T) {
blockCall := make(chan struct{})
rpc := &ethmocks.RPCClient{}
rpc.On("CallContext", mock.Anything, mock.Anything, mock.Anything).Run(func(args mock.Arguments) { <-blockCall }).Return(nil)
rpc.On("CallContext", mock.Anything, mock.Anything, "eth_newFilter", mock.Anything).Return(nil)
sm.rpc = rpc

sm.db, _ = kvstore.NewLDBKeyValueStore(path.Join(dir, "db"))
Expand Down

0 comments on commit 95526ad

Please sign in to comment.