Skip to content

Commit 33c24e1

Browse files
committed
fix missing CopyDir -> SyncDirs
1 parent f2a9c37 commit 33c24e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/adopt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func TestListUnadoptedRepositories_ListOptions(t *testing.T) {
8989

9090
func TestAdoptRepository(t *testing.T) {
9191
assert.NoError(t, unittest.PrepareTestDatabase())
92-
assert.NoError(t, unittest.CopyDir(filepath.Join(setting.RepoRootPath, "user2", "repo1.git"), filepath.Join(setting.RepoRootPath, "user2", "test-adopt.git")))
92+
assert.NoError(t, unittest.SyncDirs(filepath.Join(setting.RepoRootPath, "user2", "repo1.git"), filepath.Join(setting.RepoRootPath, "user2", "test-adopt.git")))
9393
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
9494
_, err := AdoptRepository(db.DefaultContext, user2, user2, CreateRepoOptions{Name: "test-adopt"})
9595
assert.NoError(t, err)

0 commit comments

Comments
 (0)