diff --git a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
index 929a307..04fb6f8 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
@@ -114,6 +114,7 @@ public function providerTestContextBubblingEdgeCases() {
         '#cache' => [
           'contexts' => ['foo'],
           'tags' => [],
+          'max-age' => -1,
         ],
         '#post_render_cache' => [],
         '#markup' => 'parent',
@@ -142,6 +143,7 @@ public function providerTestContextBubblingEdgeCases() {
         '#cache' => [
           'contexts' => [],
           'tags' => [],
+          'max-age' => -1,
         ],
         '#post_render_cache' => [],
         '#markup' => 'parent',
@@ -165,6 +167,7 @@ public function providerTestContextBubblingEdgeCases() {
         '#cache' => [
           'contexts' => [],
           'tags' => [],
+          'max-age' => -1,
         ],
         '#post_render_cache' => [],
         '#markup' => '',
@@ -196,6 +199,7 @@ public function providerTestContextBubblingEdgeCases() {
       'child' => [
         '#cache' => [
           'contexts' => ['foo', 'baz'],
+          'max-age' => 3600,
         ],
       ],
     ];
@@ -205,6 +209,7 @@ public function providerTestContextBubblingEdgeCases() {
         '#cache' => [
           'contexts' => ['bar', 'baz', 'foo'],
           'tags' => [],
+          'max-age' => 3600,
         ],
         '#post_render_cache' => [],
         '#markup' => 'parent',
@@ -251,6 +256,7 @@ public function providerTestContextBubblingEdgeCases() {
         '#cache' => [
           'contexts' => ['bar', 'foo'],
           'tags' => ['dee', 'fiddle', 'har', 'yar'],
+          'max-age' => -1,
         ],
         '#post_render_cache' => [],
         '#markup' => 'parent',
@@ -295,6 +301,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
         '#cache' => [
           'contexts' => ['user.roles'],
           'tags' => ['b'],
+          'max-age' => -1,
         ],
         'grandchild' => [
           '#access_callback' => function () {
@@ -339,6 +346,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
       '#cache' => [
         'contexts' => ['user.roles'],
         'tags' => ['a', 'b'],
+        'max-age' => -1,
       ],
       '#post_render_cache' => [],
       '#markup' => 'parent',
@@ -393,6 +401,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
       '#cache' => [
         'contexts' => ['foo', 'user.roles'],
         'tags' => ['a', 'b'],
+        'max-age' => -1,
       ],
       '#post_render_cache' => [],
       '#markup' => 'parent',
@@ -417,6 +426,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
       '#cache' => [
         'contexts' => ['bar', 'foo', 'user.roles'],
         'tags' => ['a', 'b', 'c', 'd'],
+        'max-age' => -1,
       ],
       '#post_render_cache' => [],
       '#markup' => 'parent',
@@ -432,6 +442,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
       '#cache' => [
         'contexts' => ['bar', 'foo', 'user.roles'],
         'tags' => ['a', 'b'],
+        'max-age' => -1,
       ],
       '#post_render_cache' => [],
       '#markup' => 'parent',
@@ -447,6 +458,7 @@ public function testConditionalCacheContextBubblingSelfHealing() {
       '#cache' => [
         'contexts' => ['bar', 'foo', 'user.roles'],
         'tags' => ['a', 'b', 'c'],
+        'max-age' => -1,
       ],
       '#post_render_cache' => [],
       '#markup' => 'parent',
