Issue Bug Closed

#97123ResourceCompressorTest.php fails in random ordered unit tests

Benjamin Franzke 03/06/22, 06:44 updated 10/04/22, 08:36

Description

https://git.typo3.org/typo3/CI/cms/-/jobs/1109375

1) TYPO3\CMS\Core\Tests\Unit\Resource\ResourceCompressorTest::getFilenamesFromMainDirInBackendContext with data set #3 ('typo3temp/assets/compressed/.htaccess', '../typo3temp/assets/compresse...access')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'../typo3temp/assets/compressed/.htaccess'
+'typo3temp/assets/compressed/.htaccess'
/builds/typo3/CI/cms/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php:604

Steps to reproduce:

rm -rf typo3temp/Build/Scripts/runTests.sh -s unitRandom -o 1646183048

Also reproducible with:

rm -f typo3temp/assets/compressed/.htaccess && Build/Scripts/runTests.sh -s unit -e "--filter getFilenamesFromMainDirInBackendContext" typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php

Reviews 1