Fix transient tests
authorJérémy Derussé <jeremy@derusse.com>
Sun, 25 Oct 2020 20:41:30 +0000 (21:41 +0100)
committerJérémy Derussé <jeremy@derusse.com>
Sun, 25 Oct 2020 20:41:30 +0000 (21:41 +0100)
src/Symfony/Component/HttpKernel/Tests/HttpCache/ResponseCacheStrategyTest.php

index 22cadf7..fd67af3 100644 (file)
@@ -216,7 +216,7 @@ class ResponseCacheStrategyTest extends TestCase
         $cacheStrategy->add($embeddedResponse);
         $cacheStrategy->update($masterResponse);
 
-        $this->assertSame('60', $masterResponse->headers->getCacheControlDirective('s-maxage'));
+        $this->assertEqualsWithDelta(60, (int) $masterResponse->headers->getCacheControlDirective('s-maxage'), 1);
     }
 
     public function testResponseIsExpirableButNotValidateableWhenMasterResponseCombinesExpirationAndValidation()