1
0
Fork 0
forked from forgejo/forgejo

Fix Issue Unsubscription (#9634)

This commit is contained in:
6543 2020-01-07 16:41:35 +01:00 committed by zeripath
parent b6fa229dcf
commit 9406368633
2 changed files with 9 additions and 5 deletions

View file

@ -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)