Skip to content

Commit 7ed98bf

Browse files
committed
fix path handling
1 parent b5eb9ff commit 7ed98bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_utils.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"database/sql"
1010
"fmt"
1111
"os"
12-
"path"
1312
"path/filepath"
1413
"testing"
1514

@@ -196,7 +195,7 @@ func PrepareGitRepoDirectory(t testing.TB) {
196195
if !assert.NotEmpty(t, setting.RepoRootPath) {
197196
return
198197
}
199-
assert.NoError(t, unittest.SyncDirs(path.Join(filepath.Dir(setting.AppPath), "tests/gitea-repositories-meta"), setting.RepoRootPath))
198+
assert.NoError(t, unittest.SyncDirs(filepath.Join(filepath.Dir(setting.AppPath), "tests/gitea-repositories-meta"), setting.RepoRootPath))
200199

201200
ownerDirs, err := os.ReadDir(setting.RepoRootPath)
202201
if err != nil {

0 commit comments

Comments
 (0)