forked from NYANDEV/forgejo
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:
parent
eab4579e17
commit
69dfe43ffc
109 changed files with 38 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue