Commit cae18a3b authored by catch's avatar catch

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
......@@ -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}"
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment