Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Dec 29, 2024
1 parent f8b1895 commit 177bfa4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/service/restore_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,13 @@ 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{},
},
restoreJobs: NewRestoreJobsHolder(),
restoreService: NewRestoreMock(wg),
backends: &BackendHolderMock{},
config: config,
clientManager: &MockClientManager{},
}
}
Expand Down

0 comments on commit 177bfa4

Please sign in to comment.