Skip to content

Commit

Permalink
Remove duplicate of watcher.SetWatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi200123 committed Jun 20, 2024
1 parent c188a6f commit 61c9470
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions database/sql/repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ type RepoTestFixtures struct {
SQLMock sqlmock.Sqlmock
}

func init() {
watcher.SetWatcher(&garmTesting.MockWatcher{})
}

type RepoTestSuite struct {
suite.Suite
Store dbCommon.Store
Expand Down Expand Up @@ -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{})
}

0 comments on commit 61c9470

Please sign in to comment.