Skip to content

Commit 7f8a5f1

Browse files
committed
minor #11966 [HttpFoundation] fixed some volatile tests (fabpot)
This PR was merged into the 2.3 branch. Discussion ---------- [HttpFoundation] fixed some volatile tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | see #11588 | License | MIT | Doc PR | n/a Commits ------- 00c1b75 [Process] fixed some volatile tests 974bf01 [HttpKernel] fixed a volatile test 6020c43 [HttpFoundation] fixed some volatile tests
2 parents a14e57e + 2591153 commit 7f8a5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/HttpCache/HttpCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public function testAssignsDefaultTtlWhenResponseHasNoFreshnessInformationAndAft
606606
$this->assertTraceContains('miss');
607607
$this->assertTraceContains('store');
608608
$this->assertEquals('Hello World', $this->response->getContent());
609-
$this->assertRegExp('/s-maxage=2/', $this->response->headers->get('Cache-Control'));
609+
$this->assertRegExp('/s-maxage=(?:2|3)/', $this->response->headers->get('Cache-Control'));
610610

611611
$this->request('GET', '/');
612612
$this->assertHttpKernelIsNotCalled();

0 commit comments

Comments
 (0)