diff --git a/pkg/service/restore_data_test.go b/pkg/service/restore_data_test.go index fe81b6e7..31e780d4 100644 --- a/pkg/service/restore_data_test.go +++ b/pkg/service/restore_data_test.go @@ -41,18 +41,6 @@ func (b *BackendHolderMock) Init(_ *model.Config) { } func makeTestRestoreService(wg *sync.WaitGroup) *dataRestorer { - storage := &model.LocalStorage{} - config := model.NewConfig() - _ = config.AddStorage("s", storage) - config.BackupRoutines = map[string]*model.BackupRoutine{ - "routine": { - Storage: storage, - }, - "routine_fail_restore": { - Storage: storage, - }, - } - return &dataRestorer{ configRetriever: configRetriever{ backends: &BackendHolderMock{}, @@ -60,7 +48,6 @@ func makeTestRestoreService(wg *sync.WaitGroup) *dataRestorer { restoreJobs: NewRestoreJobsHolder(), restoreService: NewRestoreMock(wg), backends: &BackendHolderMock{}, - config: config, clientManager: &MockClientManager{}, } }