diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-02-26 07:15:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 01:15:25 -0500 |
commit | 5b0cdd615567e49766fc7451cae84da17e152cea (patch) | |
tree | db46a82636317803cf979c603aec0b46e299a6a5 /services/repository | |
parent | 33e19c800458bd7c03bc51772537944eb95975ae (diff) | |
download | gitea-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.go | 8 |
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() |