@@ -304,11 +304,11 @@ func TestAPIRepoMigrate(t *testing.T) {
304
304
cloneURL , repoName string
305
305
expectedStatus int
306
306
}{
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 },
312
312
}
313
313
314
314
defer prepareTestEnv (t )()
@@ -348,7 +348,7 @@ func testAPIRepoMigrateConflict(t *testing.T, u *url.URL) {
348
348
assert .NoError (t , err )
349
349
userID := user .ID
350
350
351
- cloneURL := "https://github.com/go-gitea/git .git"
351
+ cloneURL := "https://github.com/go-gitea/test_repo .git"
352
352
353
353
req := NewRequestWithJSON (t , "POST" , "/api/v1/repos/migrate?token=" + httpContext .Token ,
354
354
& api.MigrateRepoOption {
0 commit comments