mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 00:38:36 +00:00
Fix some tests : make coverage -> test (#2492)
* Fix test : make coverage -> test * Refactor integration tests to be able to run them in parallel * Add custom local repository temp path
This commit is contained in:
@@ -118,8 +118,8 @@ func initIntegrationTest() {
|
||||
|
||||
func prepareTestEnv(t testing.TB) {
|
||||
assert.NoError(t, models.LoadFixtures())
|
||||
assert.NoError(t, os.RemoveAll("integrations/gitea-integration"))
|
||||
assert.NoError(t, com.CopyDir("integrations/gitea-integration-meta", "integrations/gitea-integration"))
|
||||
assert.NoError(t, os.RemoveAll(setting.RepoRootPath))
|
||||
assert.NoError(t, com.CopyDir("integrations/gitea-repositories-meta", setting.RepoRootPath))
|
||||
}
|
||||
|
||||
type TestSession struct {
|
||||
|
Reference in New Issue
Block a user