summaryrefslogtreecommitdiffstats
path: root/models/issue_watch_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-10-25 01:36:19 +0800
committerLauris BH <lauris@nix.lv>2017-10-24 20:36:19 +0300
commit6eeadb2082193f8e3dc5269dfc6da2daef7eb6a1 (patch)
treed28d3be3451194e98a5c01097347e7eebdb6393f /models/issue_watch_test.go
parent03900303a9500b33b33ff03fd6dd325147a1117e (diff)
downloadgitea-6eeadb2082193f8e3dc5269dfc6da2daef7eb6a1.tar.gz
gitea-6eeadb2082193f8e3dc5269dfc6da2daef7eb6a1.zip
Hide unactive on explore users and some refactors (#2741)
* hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code
Diffstat (limited to 'models/issue_watch_test.go')
-rw-r--r--models/issue_watch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_watch_test.go b/models/issue_watch_test.go
index a4819b2224..ce0d2045ca 100644
--- a/models/issue_watch_test.go
+++ b/models/issue_watch_test.go
@@ -25,7 +25,7 @@ func TestCreateOrUpdateIssueWatch(t *testing.T) {
func TestGetIssueWatch(t *testing.T) {
assert.NoError(t, PrepareTestDatabase())
- _, exists, err := GetIssueWatch(1, 1)
+ _, exists, err := GetIssueWatch(9, 1)
assert.Equal(t, true, exists)
assert.NoError(t, err)