Skip to content

Commit 85aedf1

Browse files
committed
Fix CI
1 parent c0e903e commit 85aedf1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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)