summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-01-30 12:12:05 (GMT)
committerNathaniel Catchpole2017-01-30 12:12:05 (GMT)
commitcae18a3b3f713887f7218cf02a3a560f346428aa (patch)
treef1b959a38f33fdf1baeb1871c6e2f7e438ef94a3
parent4e4833b60ec665239cd4f4e8acdc54f5592f062f (diff)
Issue #2847268 by tacituseu, alexpott, dawehner: Random fail in Drupal\page_cache\Tests\PageCacheTest:: testPageCacheAnonymous403404()
-rw-r--r--core/modules/page_cache/src/Tests/PageCacheTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php
index 2ca10e3..3a7cd17 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTest.php
@@ -378,10 +378,10 @@ class PageCacheTest extends WebTestBase {
// 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}"
);
}