diff options
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) |