GODT-2213: Don't unnecessarily enable/disable autostart

This commit is contained in:
James Houlahan
2022-12-19 08:29:57 +00:00
committed by Romain Le Jeune
parent 3499fbd758
commit e4b81063cb
8 changed files with 43 additions and 12 deletions

View File

@ -194,6 +194,7 @@ func (t *testCtx) initFrontendService(eventCh <-chan events.Event) error {
// When starting the frontend, we might enable autostart on bridge if it isn't already.
t.mocks.Autostarter.EXPECT().Enable().AnyTimes()
t.mocks.Autostarter.EXPECT().IsEnabled().AnyTimes()
service, err := frontend.NewService(
new(mockCrashHandler),