diff options
Diffstat (limited to 'models/issue_watch_test.go')
-rw-r--r-- | models/issue_watch_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/issue_watch_test.go b/models/issue_watch_test.go index d8b456c3ae..a4819b2224 100644 --- a/models/issue_watch_test.go +++ b/models/issue_watch_test.go @@ -43,6 +43,11 @@ func TestGetIssueWatchers(t *testing.T) { iws, err := GetIssueWatchers(1) assert.NoError(t, err) + // Watcher is inactive, thus 0 + assert.Equal(t, 0, len(iws)) + + iws, err = GetIssueWatchers(2) + assert.NoError(t, err) assert.Equal(t, 1, len(iws)) iws, err = GetIssueWatchers(5) |