diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 5ebf9f0c9f..440f968151 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -142,6 +142,11 @@
 }
 
 $test_list = simpletest_script_get_test_list();
+if (in_array('Drupal\Tests\rest\Functional\EntityResource\User\UserJsonAnonTest', $test_list)) {
+  $test_list = array_fill(0, 500, 'Drupal\Tests\rest\Functional\EntityResource\User\UserJsonAnonTest');
+} else {
+  $test_list = [];
+}
 
 // Try to allocate unlimited time to run the tests.
 drupal_set_time_limit(0);
