summaryrefslogtreecommitdiffstats
path: root/models/issues/issue_watch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/issue_watch_test.go')
-rw-r--r--models/issues/issue_watch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go
index 4f44487f56..d4ce8d8d3d 100644
--- a/models/issues/issue_watch_test.go
+++ b/models/issues/issue_watch_test.go
@@ -16,11 +16,11 @@ import (
func TestCreateOrUpdateIssueWatch(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
- assert.NoError(t, issues_model.CreateOrUpdateIssueWatch(3, 1, true))
+ assert.NoError(t, issues_model.CreateOrUpdateIssueWatch(db.DefaultContext, 3, 1, true))
iw := unittest.AssertExistsAndLoadBean(t, &issues_model.IssueWatch{UserID: 3, IssueID: 1})
assert.True(t, iw.IsWatching)
- assert.NoError(t, issues_model.CreateOrUpdateIssueWatch(1, 1, false))
+ assert.NoError(t, issues_model.CreateOrUpdateIssueWatch(db.DefaultContext, 1, 1, false))
iw = unittest.AssertExistsAndLoadBean(t, &issues_model.IssueWatch{UserID: 1, IssueID: 1})
assert.False(t, iw.IsWatching)
}