Skip to content

Commit a9bfb76

Browse files
committed
fix unit tests
1 parent 3171fa3 commit a9bfb76

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

models/unit_tests.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ func MainTest(m *testing.M, pathToGiteaRoot string) {
6565
fatalTestError("url.Parse: %v\n", err)
6666
}
6767

68+
if err = removeAllWithRetry(setting.RepoRootPath); err != nil {
69+
fatalTestError("os.RemoveAll: %v\n", err)
70+
}
71+
if err = com.CopyDir(filepath.Join(pathToGiteaRoot, "integrations", "gitea-repositories-meta"), setting.RepoRootPath); err != nil {
72+
fatalTestError("com.CopyDir: %v\n", err)
73+
}
74+
6875
exitStatus := m.Run()
6976
if err = removeAllWithRetry(setting.RepoRootPath); err != nil {
7077
fatalTestError("os.RemoveAll: %v\n", err)

0 commit comments

Comments
 (0)