summaryrefslogtreecommitdiffstats
path: root/services/repository
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-02-26 07:15:25 +0100
committerGitHub <noreply@github.com>2022-02-26 01:15:25 -0500
commit5b0cdd615567e49766fc7451cae84da17e152cea (patch)
treedb46a82636317803cf979c603aec0b46e299a6a5 /services/repository
parent33e19c800458bd7c03bc51772537944eb95975ae (diff)
downloadgitea-5b0cdd615567e49766fc7451cae84da17e152cea.tar.gz
gitea-5b0cdd615567e49766fc7451cae84da17e152cea.zip
Set is_empty in fixtures (#18869)
Diffstat (limited to 'services/repository')
-rw-r--r--services/repository/files/content_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go
index c21aa31d32..84bb1c2e02 100644
--- a/services/repository/files/content_test.go
+++ b/services/repository/files/content_test.go
@@ -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()