Skip to content

Commit 6d361f2

Browse files
[AssetMapper] Surround brittle test teardown with try/catch
1 parent 678fede commit 6d361f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\AssetMapper\ImportMap\ImportMapEntry;
1616
use Symfony\Component\AssetMapper\ImportMap\ImportMapType;
1717
use Symfony\Component\AssetMapper\ImportMap\RemotePackageStorage;
18+
use Symfony\Component\Filesystem\Exception\IOException;
1819
use Symfony\Component\Filesystem\Filesystem;
1920

2021
class RemotePackageStorageTest extends TestCase
@@ -32,7 +33,11 @@ protected function setUp(): void
3233

3334
protected function tearDown(): void
3435
{
35-
$this->filesystem->remove(self::$writableRoot);
36+
try {
37+
$this->filesystem->remove(self::$writableRoot);
38+
} catch (IOException) {
39+
// no-op
40+
}
3641
}
3742

3843
public function testGetStorageDir()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy