forked from forgejo/forgejo
Fix Issue Unsubscription (#9634)
This commit is contained in:
parent
b6fa229dcf
commit
9406368633
2 changed files with 9 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue