Set is_empty in fixtures (#18869)

This commit is contained in:
KN4CK3R authored and GitHub committed 2022-02-26 01:15:25 -05:00
1 parent 33e19c8004
commit 5b0cdd6155
5 files changed
+43 -6

No files matched your search

+4 -4
View File
@@ -203,10 +203,10 @@ func TestGetContentsOrListErrors(t *testing.T) {
func TestGetContentsOrListOfEmptyRepos(t *testing.T) {
unittest.PrepareTestEnv(t)
ctx := test.MockContext(t, "user2/repo15")
ctx.SetParams(":id", "15")
test.LoadRepo(t, ctx, 15)
test.LoadUser(t, ctx, 2)
ctx := test.MockContext(t, "user30/empty")
ctx.SetParams(":id", "52")
test.LoadRepo(t, ctx, 52)
test.LoadUser(t, ctx, 30)
test.LoadGitRepo(t, ctx)
defer ctx.Repo.GitRepo.Close()