From 3178f50594b12485737321ef807390de85fed32b Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Thu, 30 Mar 2017 10:53:20 +0200 Subject: [PATCH] Fix failing HttpCache test on windows --- .../Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php index 3a32a6b784..a24380c406 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php @@ -564,6 +564,10 @@ class HttpCacheTest extends HttpCacheTestCase public function testDegradationWhenCacheLocked() { + if ('\\' === DIRECTORY_SEPARATOR) { + $this->markTestSkipped('Skips on windows to avoid permissions issues.'); + } + $this->cacheConfig['stale_while_revalidate'] = 10; // The prescence of Last-Modified makes this cacheable (because Response::isValidateable() then).