Fix transient tests

This commit is contained in:
Jérémy Derussé 2020-10-25 21:41:30 +01:00
parent f83f950639
commit 987efdd620
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2

View 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()