Merge pull request #267 from fabi200123/fix-set-watcher

Remove duplicate of watcher.SetWatcher()
This commit is contained in:
Gabriel 2024-06-20 17:59:25 +03:00 committed by GitHub
commit 98b8a7f15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,10 @@ type RepoTestFixtures struct {
SQLMock sqlmock.Sqlmock
}
func init() {
watcher.SetWatcher(&garmTesting.MockWatcher{})
}
type RepoTestSuite struct {
suite.Suite
Store dbCommon.Store
@ -829,10 +833,5 @@ func (s *RepoTestSuite) TestUpdateRepositoryPoolInvalidRepoID() {
func TestRepoTestSuite(t *testing.T) {
t.Parallel()
watcher.SetWatcher(&garmTesting.MockWatcher{})
suite.Run(t, new(RepoTestSuite))
}
func init() {
watcher.SetWatcher(&garmTesting.MockWatcher{})
}