Fix transient test

This commit is contained in:
Nicolas Grekas 2021-02-11 10:33:17 +01:00
parent de2f22086e
commit b0267e6dcf
1 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,7 @@ use Symfony\Component\Config\ConfigCacheFactory;
use Symfony\Component\Config\Resource\ResourceInterface;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
@ -37,7 +38,10 @@ class CacheClearCommandTest extends TestCase
protected function tearDown(): void
{
$this->fs->remove($this->kernel->getProjectDir());
try {
$this->fs->remove($this->kernel->getProjectDir());
} catch (IOException $e) {
}
}
public function testCacheIsFreshAfterCacheClearedWithWarmup()