mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix integration tests (#3141)
This commit is contained in:
		@@ -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))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user