Skip to content

Commit 7744b36

Browse files
authored
Use a small size repo for migrate test (#12300)
Signed-off-by: a1012112796 <[email protected]>
1 parent 0186497 commit 7744b36

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

integrations/api_repo_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ func TestAPIRepoMigrate(t *testing.T) {
304304
cloneURL, repoName string
305305
expectedStatus int
306306
}{
307-
{ctxUserID: 1, userID: 2, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-admin", expectedStatus: http.StatusCreated},
308-
{ctxUserID: 2, userID: 2, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-own", expectedStatus: http.StatusCreated},
309-
{ctxUserID: 2, userID: 1, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-bad", expectedStatus: http.StatusForbidden},
310-
{ctxUserID: 2, userID: 3, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-org", expectedStatus: http.StatusCreated},
311-
{ctxUserID: 2, userID: 6, cloneURL: "https://github.com/go-gitea/git.git", repoName: "git-bad-org", expectedStatus: http.StatusForbidden},
307+
{ctxUserID: 1, userID: 2, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-admin", expectedStatus: http.StatusCreated},
308+
{ctxUserID: 2, userID: 2, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-own", expectedStatus: http.StatusCreated},
309+
{ctxUserID: 2, userID: 1, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-bad", expectedStatus: http.StatusForbidden},
310+
{ctxUserID: 2, userID: 3, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-org", expectedStatus: http.StatusCreated},
311+
{ctxUserID: 2, userID: 6, cloneURL: "https://github.com/go-gitea/test_repo.git", repoName: "git-bad-org", expectedStatus: http.StatusForbidden},
312312
}
313313

314314
defer prepareTestEnv(t)()
@@ -348,7 +348,7 @@ func testAPIRepoMigrateConflict(t *testing.T, u *url.URL) {
348348
assert.NoError(t, err)
349349
userID := user.ID
350350

351-
cloneURL := "https://github.com/go-gitea/git.git"
351+
cloneURL := "https://github.com/go-gitea/test_repo.git"
352352

353353
req := NewRequestWithJSON(t, "POST", "/api/v1/repos/migrate?token="+httpContext.Token,
354354
&api.MigrateRepoOption{

integrations/repo_migrate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ func testRepoMigrate(t testing.TB, session *TestSession, cloneAddr, repoName str
3838
func TestRepoMigrate(t *testing.T) {
3939
defer prepareTestEnv(t)()
4040
session := loginUser(t, "user2")
41-
testRepoMigrate(t, session, "https://github.com/go-gitea/git.git", "git")
41+
testRepoMigrate(t, session, "https://github.com/go-gitea/test_repo.git", "git")
4242
}

0 commit comments

Comments
 (0)