Skip to content
Snippets Groups Projects
Commit cae18a3b authored by catch's avatar catch
Browse files

Issue #2847268 by tacituseu, alexpott, dawehner: Random fail in...

Issue #2847268 by tacituseu, alexpott, dawehner: Random fail in Drupal\page_cache\Tests\PageCacheTest:: testPageCacheAnonymous403404()
parent 4e4833b6
No related branches found
No related tags found
No related merge requests found
......@@ -378,10 +378,10 @@ function testPageCacheAnonymous403404() {
// Given that a second might have passed we cannot be sure that
// $difference will exactly equal the default cache_ttl_4xx setting.
// Account for any timing difference or rounding errors by ensuring the
// value is within 5 seconds.
// value is within 10 seconds.
$this->assertTrue(
$difference > $cache_ttl_4xx - 5 &&
$difference < $cache_ttl_4xx + 5,
$difference > $cache_ttl_4xx - 10 &&
$difference < $cache_ttl_4xx + 10,
"The cache entry expiry time uses the cache_ttl_4xx setting. Expire: {$cache_item->expire} Created: {$cache_item->created}"
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment