Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$this->assertTrue($cached->created >= REQUEST_TIME && $cached->created < microtime(TRUE), 'Created time is correct.');
From GenericCacheBackendUnitTestBase.php so if the testbot is super quick and $cached->created == microtime(TRUE) then this test will fail!
This occurred in https://qa.drupal.org/pifr/test/796668
Drupal\system\Tests\Cache\ApcuBackendUnitTest 158 1 0
Message Group Filename Line Function Status
Created time is correct. Other GenericCacheBackendUnitTestBase.php 182 Drupal\system\Tests\Cache\GenericCacheBackendUnitTestBase->testSetGet()
Comment | File | Size | Author |
---|---|---|---|
#1 | 2276213.1.patch | 1.03 KB | alexpott |
Comments
Comment #1
alexpottComment #2
BerdirYes, I've seen this as well. I don't think we can do anything else...
Comment #3
olli CreditAttribution: olli commented#2273489: Random test failure 'Created time is correct.' in GenericCacheBackendUnitTestBase/ApcuBackendUnitTest