Skip to content

Commit

Permalink
fix test, add reference to mock telemetry client
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed May 5, 2022
1 parent 23e0204 commit 6880a9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dot/sync/syncer_integeration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func newTestSyncer(t *testing.T) *Service {
ctrl := gomock.NewController(t)

mockTelemetryClient := NewMockClient(ctrl)
mockTelemetryClient.EXPECT().SendMessage(gomock.Any())
mockTelemetryClient.EXPECT().SendMessage(gomock.Any()).AnyTimes()

wasmer.DefaultTestLogLvl = log.Warn

Expand Down Expand Up @@ -145,6 +145,7 @@ func newTestSyncer(t *testing.T) *Service {
cfg.LogLvl = log.Trace
cfg.FinalityGadget = newMockFinalityGadget()
cfg.Network = newMockNetwork()
cfg.Telemetry = mockTelemetryClient

syncer, err := NewService(cfg)
require.NoError(t, err)
Expand Down

0 comments on commit 6880a9b

Please sign in to comment.