Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c97d850

Browse filesBrowse 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
Copy full SHA for c97d850

File tree

1 file changed

+4
-5
lines changed
Filter options

1 file changed

+4
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Tests/Store/FlockStoreTest.php
+4-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.