chore: drop unused Darwin range test variation

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2025-12-04 16:48:42 -05:00 committed by GitHub
parent d95ce6ac92
commit 511f54324a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -805,15 +805,11 @@ class ViewTest extends \Test\TestCase {
$ds = DIRECTORY_SEPARATOR;
/*
* 4096 is the maximum path length in file_cache.path in *nix
* 1024 is the max path length in mac
*/
$folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789';
$tmpdirLength = strlen(Server::get(ITempManager::class)->getTemporaryFolder());
if (PHP_OS_FAMILY === 'Darwin') { // macOS
$depth = ((1024 - $tmpdirLength) / 57);
} else {
$depth = ((4000 - $tmpdirLength) / 57);
}
$depth = ((4000 - $tmpdirLength) / 57);
foreach (range(0, $depth - 1) as $i) {
$longPath .= $ds . $folderName;
$result = $rootView->mkdir($longPath);