diff --git a/core/modules/auto_updates/tests/src/Functional/GenericTest.php b/core/modules/auto_updates/tests/src/Functional/GenericTest.php
index d4258ff2d1ffa4afa270ee7d5b4617cc113e7dd0..bba4e2a7bae4d5de85350026bec66bc5bf65d3fd 100644
--- a/core/modules/auto_updates/tests/src/Functional/GenericTest.php
+++ b/core/modules/auto_updates/tests/src/Functional/GenericTest.php
@@ -10,6 +10,5 @@
  * Generic module test for auto_updates.
  *
  * @group auto_updates
- * @group legacy
  */
 class GenericTest extends GenericModuleTestBase {}
diff --git a/core/modules/package_manager/tests/src/Functional/GenericTest.php b/core/modules/package_manager/tests/src/Functional/GenericTest.php
index 37e159e780d552386e2f64a7a51979450d097f83..d096f0c73788fb6e579cd25d8514fbb9da80e687 100644
--- a/core/modules/package_manager/tests/src/Functional/GenericTest.php
+++ b/core/modules/package_manager/tests/src/Functional/GenericTest.php
@@ -10,6 +10,5 @@
  * Generic module test for package_manager.
  *
  * @group package_manager
- * @group legacy
  */
 class GenericTest extends GenericModuleTestBase {}