diff options
author | 6543 <6543@obermui.de> | 2020-01-07 16:41:35 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-07 15:41:35 +0000 |
commit | 940636863370855f39688ddf0aae41667ac8935c (patch) | |
tree | f042597f15fb5b7d7f15972308a9174e31a43e26 /models/issue_watch_test.go | |
parent | b6fa229dcfbe4ad64fe758ef92abaf7a80e6f700 (diff) | |
download | gitea-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.go | 5 |
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) |