Fix integration tests (#3141)

This commit is contained in:
Ethan Koenig authored and Bo-Yi Wu committed 2017-12-11 08:52:05 +08:00
1 parent 41d6afe0e7
commit d1efe2078a
2 files changed
+10 -4

No files matched your search

+1
View File
@@ -136,6 +136,7 @@ func initIntegrationTest() {
func prepareTestEnv(t testing.TB) {
assert.NoError(t, models.LoadFixtures())
assert.NoError(t, os.RemoveAll(setting.RepoRootPath))
assert.NoError(t, os.RemoveAll(models.LocalCopyPath()))
assert.NoError(t, com.CopyDir(path.Join(filepath.Dir(setting.AppPath), "integrations/gitea-repositories-meta"),
setting.RepoRootPath))