aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_watch_test.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-07 16:41:35 +0100
committerzeripath <art27@cantab.net>2020-01-07 15:41:35 +0000
commit940636863370855f39688ddf0aae41667ac8935c (patch)
treef042597f15fb5b7d7f15972308a9174e31a43e26 /models/issue_watch_test.go
parentb6fa229dcfbe4ad64fe758ef92abaf7a80e6f700 (diff)
downloadgitea-940636863370855f39688ddf0aae41667ac8935c.tar.gz
gitea-940636863370855f39688ddf0aae41667ac8935c.zip
Fix Issue Unsubscription (#9634)
Diffstat (limited to 'models/issue_watch_test.go')
-rw-r--r--models/issue_watch_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/issue_watch_test.go b/models/issue_watch_test.go
index 1d0473426e..90140591bf 100644
--- a/models/issue_watch_test.go
+++ b/models/issue_watch_test.go
@@ -29,9 +29,10 @@ func TestGetIssueWatch(t *testing.T) {
assert.True(t, exists)
assert.NoError(t, err)
- _, exists, err = GetIssueWatch(2, 2)
- assert.False(t, exists)
+ iw, exists, err := GetIssueWatch(2, 2)
+ assert.True(t, exists)
assert.NoError(t, err)
+ assert.EqualValues(t, false, iw.IsWatching)
_, exists, err = GetIssueWatch(3, 1)
assert.False(t, exists)