diff --git a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
index 24dc0849fc378fd5458271e0f627cd51e101e0cd..739da5484034f52e9cef6c1285406e3eb167fca4 100644
--- a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
@@ -117,7 +117,6 @@ public function testRoleWeightOrdering() {
     $this->assertText(t('The role settings have been updated.'), 'The role settings form submitted successfully.');
 
     // Load up the user roles with the new weights.
-    drupal_static_reset('user_roles');
     $roles = user_roles();
     $rids = [];
     // Test that the role weights have been correctly saved.