Skip to content

Commit 511f543

Browse files
chore: drop unused Darwin range test variation
Signed-off-by: Josh <[email protected]>
1 parent d95ce6a commit 511f543

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/lib/Files/ViewTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,15 +805,11 @@ public function xtestLongPath() {
805805
$ds = DIRECTORY_SEPARATOR;
806806
/*
807807
* 4096 is the maximum path length in file_cache.path in *nix
808-
* 1024 is the max path length in mac
809808
*/
810809
$folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789';
811810
$tmpdirLength = strlen(Server::get(ITempManager::class)->getTemporaryFolder());
812-
if (PHP_OS_FAMILY === 'Darwin') { // macOS
813-
$depth = ((1024 - $tmpdirLength) / 57);
814-
} else {
815-
$depth = ((4000 - $tmpdirLength) / 57);
816-
}
811+
$depth = ((4000 - $tmpdirLength) / 57);
812+
817813
foreach (range(0, $depth - 1) as $i) {
818814
$longPath .= $ds . $folderName;
819815
$result = $rootView->mkdir($longPath);

0 commit comments

Comments
 (0)