Skip to content

Commit c97d850

Browse files
committed
minor #39721 [Lock] Fix CI (jderusse)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Lock] Fix CI | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- e74a7f2 Fix CI
2 parents d1664d7 + e74a7f2 commit c97d850

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Symfony/Component/Lock/Tests/Store/FlockStoreTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ public function testConstructWhenRepositoryIsNotWriteable()
5656

5757
public function testConstructWithSubdir()
5858
{
59-
if (!getenv('USER') || 'root' === getenv('USER')) {
60-
$this->markTestSkipped('This test will fail if run under superuser');
61-
}
62-
63-
new FlockStore(sys_get_temp_dir().'/sf-flock');
59+
new FlockStore($dir = (sys_get_temp_dir().'/sf-flock'));
60+
$this->assertDirectoryExists($dir);
61+
// cleanup
62+
@rmdir($dir);
6463
}
6564

6665
public function testSaveSanitizeName()

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