Project

General

Profile

Actions

Bug #97123

closed

ResourceCompressorTest.php fails in random ordered unit tests

Added by Benjamin Franzke about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Tests
Target version:
Start date:
2022-03-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #97030: Use dependency injection in PageRendererClosedBenjamin Franzke2022-02-24

Actions
Actions

Also available in: Atom PDF