 core/modules/search/src/Tests/SearchConfigSettingsFormTest.php | 2 --
 1 file changed, 2 deletions(-)

diff --git a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
index cc77f2b..47e5b63 100644
--- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
@@ -195,8 +195,6 @@ public function testSearchModuleDisabling() {
       $entity->enable()->save();
     }
 
-    \Drupal::service('router.builder')->rebuild();
-
     $paths = [
       ['path' => 'search/node', 'options' => ['query' => ['keys' => 'pizza']]],
       ['path' => 'search/node', 'options' => []],
