Merge pull request #267 from fabi200123/fix-set-watcher
Remove duplicate of watcher.SetWatcher()
This commit is contained in:
commit
98b8a7f15f
1 changed files with 4 additions and 5 deletions
|
|
@ -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{})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue