aboutsummaryrefslogtreecommitdiffstats
path: root/models/access_test.go
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2020-02-15 01:29:06 -0300
committerGitHub <noreply@github.com>2020-02-15 12:29:06 +0800
commit62a1322cf9940daa987ca16053f5081d7da54298 (patch)
tree760d0c18dd81dbe5b089941bc5e827ccd93491df /models/access_test.go
parenta97fe76950bf69ca71c9b790e8d0e76d5e870235 (diff)
downloadgitea-62a1322cf9940daa987ca16053f5081d7da54298.tar.gz
gitea-62a1322cf9940daa987ca16053f5081d7da54298.zip
Fix "access" fixtures and tests (#10247)
* Add fixture gen tool and fix "access" test * Close file before exiting * Add missing repo_unit for repo id: 5 * Fix count on TestAPIOrgRepos Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models/access_test.go')
-rw-r--r--models/access_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/access_test.go b/models/access_test.go
index 103fe3a688..c134ab98d8 100644
--- a/models/access_test.go
+++ b/models/access_test.go
@@ -112,7 +112,7 @@ func TestUser_GetAccessibleRepositories(t *testing.T) {
user2 := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User)
repos, err = user2.GetAccessibleRepositories(0)
assert.NoError(t, err)
- assert.Len(t, repos, 1)
+ assert.Len(t, repos, 4)
user29 := AssertExistsAndLoadBean(t, &User{ID: 29}).(*User)
repos, err = user29.GetAccessibleRepositories(0)