Skip to content

Commit a0d35f5

Browse files
Fix transient test
1 parent ab1f0e9 commit a0d35f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Config\Resource\ResourceInterface;
1919
use Symfony\Component\Console\Input\ArrayInput;
2020
use Symfony\Component\Console\Output\NullOutput;
21+
use Symfony\Component\Filesystem\Exception\IOException;
2122
use Symfony\Component\Filesystem\Filesystem;
2223
use Symfony\Component\Finder\Finder;
2324

@@ -37,7 +38,10 @@ protected function setUp(): void
3738

3839
protected function tearDown(): void
3940
{
40-
$this->fs->remove($this->kernel->getProjectDir());
41+
try {
42+
$this->fs->remove($this->kernel->getProjectDir());
43+
} catch (IOException $e) {
44+
}
4145
}
4246

4347
public function testCacheIsFreshAfterCacheClearedWithWarmup()

0 commit comments

Comments
 (0)