aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/incoming_email_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/incoming_email_test.go')
-rw-r--r--tests/integration/incoming_email_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/incoming_email_test.go b/tests/integration/incoming_email_test.go
index b4478f5780..1284833864 100644
--- a/tests/integration/incoming_email_test.go
+++ b/tests/integration/incoming_email_test.go
@@ -154,7 +154,7 @@ func TestIncomingEmail(t *testing.T) {
t.Run("Unsubscribe", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()
- watching, err := issues_model.CheckIssueWatch(user, issue)
+ watching, err := issues_model.CheckIssueWatch(db.DefaultContext, user, issue)
assert.NoError(t, err)
assert.True(t, watching)
@@ -169,7 +169,7 @@ func TestIncomingEmail(t *testing.T) {
assert.NoError(t, handler.Handle(db.DefaultContext, content, user, payload))
- watching, err = issues_model.CheckIssueWatch(user, issue)
+ watching, err = issues_model.CheckIssueWatch(db.DefaultContext, user, issue)
assert.NoError(t, err)
assert.False(t, watching)
})