Skip to content

Commit bd2d874

Browse files
committed
Fix transient tests
1 parent e3512ba commit bd2d874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/HttpCache/ResponseCacheStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function testResponseIsExiprableWhenEmbeddedResponseCombinesExpiryAndVali
216216
$cacheStrategy->add($embeddedResponse);
217217
$cacheStrategy->update($masterResponse);
218218

219-
$this->assertSame('60', $masterResponse->headers->getCacheControlDirective('s-maxage'));
219+
$this->assertEqualsWithDelta(60, (int) $masterResponse->headers->getCacheControlDirective('s-maxage'), 1);
220220
}
221221

222222
public function testResponseIsExpirableButNotValidateableWhenMasterResponseCombinesExpirationAndValidation()

0 commit comments

Comments
 (0)