aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo/watch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo/watch_test.go')
-rw-r--r--models/repo/watch_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/repo/watch_test.go b/models/repo/watch_test.go
index 1384d1e157..7aa899291c 100644
--- a/models/repo/watch_test.go
+++ b/models/repo/watch_test.go
@@ -122,18 +122,18 @@ func TestWatchRepoMode(t *testing.T) {
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1}, 0)
- assert.NoError(t, repo_model.WatchRepoMode(12, 1, repo_model.WatchModeAuto))
+ assert.NoError(t, repo_model.WatchRepoMode(db.DefaultContext, 12, 1, repo_model.WatchModeAuto))
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1}, 1)
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1, Mode: repo_model.WatchModeAuto}, 1)
- assert.NoError(t, repo_model.WatchRepoMode(12, 1, repo_model.WatchModeNormal))
+ assert.NoError(t, repo_model.WatchRepoMode(db.DefaultContext, 12, 1, repo_model.WatchModeNormal))
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1}, 1)
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1, Mode: repo_model.WatchModeNormal}, 1)
- assert.NoError(t, repo_model.WatchRepoMode(12, 1, repo_model.WatchModeDont))
+ assert.NoError(t, repo_model.WatchRepoMode(db.DefaultContext, 12, 1, repo_model.WatchModeDont))
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1}, 1)
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1, Mode: repo_model.WatchModeDont}, 1)
- assert.NoError(t, repo_model.WatchRepoMode(12, 1, repo_model.WatchModeNone))
+ assert.NoError(t, repo_model.WatchRepoMode(db.DefaultContext, 12, 1, repo_model.WatchModeNone))
unittest.AssertCount(t, &repo_model.Watch{UserID: 12, RepoID: 1}, 0)
}