Skip to content

Commit

Permalink
Fix observer mock init
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 30, 2019
1 parent 6a080f3 commit c91a128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func SetupMocks(abtest bool) Mocks {
flaggerClient: flaggerClient,
},
}
observer := metrics.NewObserver("fake")

// init controller
flaggerInformerFactory := informers.NewSharedInformerFactory(flaggerClient, noResyncPeriodFunc())
Expand All @@ -91,7 +92,7 @@ func SetupMocks(abtest bool) Mocks {
canaries: new(sync.Map),
flaggerWindow: time.Second,
deployer: deployer,
observer: metrics.NewObserver("fake"),
observer: observer,
recorder: metrics.NewRecorder(controllerAgentName, false),
}
ctrl.flaggerSynced = alwaysReady
Expand Down

0 comments on commit c91a128

Please sign in to comment.