Issue Bug Closed

#103509RotatingFileWriterTest fails as there is no 30th of February

Andreas Kienast 03/30/24, 14:26 updated 07/09/24, 15:36

Description

The test RotatingFileWriterTest::writingLogWithExpiredLatestRotationInTimeFrameRotates currently fails with the following error:

1) TYPO3\CMS\Core\Tests\Unit\Log\Writer\RotatingFileWriterTest::writingLogWithExpiredLatestRotationInTimeFrameRotates with data set #2 (TYPO3\CMS\Core\Log\Writer\Enum\Interval Enum (MONTHLY, 'monthly'))
Failed asserting that actual size 1 matches expected size 2.

The reason is that the test creates a log file that is expected to be rotated which fails for the “monthly” case as there is no February 30th.

Reviews 1