From fe1823dc211960ff0fa515af2fc2894942fd3d05 Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Fri, 27 Jul 2018 20:10:27 -0400 Subject: [PATCH] test: remove custom AsyncHooksTestConfiguration Has the same behavior as `ParallelTestConfiguration` PR-URL: https://github.com/nodejs/node/pull/22008 Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater --- test/async-hooks/testcfg.py | 2 +- test/testpy/__init__.py | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/test/async-hooks/testcfg.py b/test/async-hooks/testcfg.py index 9f75273938ee23..79e8c6834eb399 100644 --- a/test/async-hooks/testcfg.py +++ b/test/async-hooks/testcfg.py @@ -3,4 +3,4 @@ import testpy def GetConfiguration(context, root): - return testpy.AsyncHooksTestConfiguration(context, root, 'async-hooks') + return testpy.ParallelTestConfiguration(context, root, 'async-hooks') diff --git a/test/testpy/__init__.py b/test/testpy/__init__.py index 455d57f4d9157a..8b5b2f6b48f09f 100644 --- a/test/testpy/__init__.py +++ b/test/testpy/__init__.py @@ -165,18 +165,6 @@ def ListTests(self, current_path, path, arch, mode): SimpleTestCase(test, file_path, arch, mode, self.context, self, self.additional_flags)) return result -class AsyncHooksTestConfiguration(SimpleTestConfiguration): - def __init__(self, context, root, section, additional=None): - super(AsyncHooksTestConfiguration, self).__init__(context, root, section, - additional) - - def ListTests(self, current_path, path, arch, mode): - result = super(AsyncHooksTestConfiguration, self).ListTests( - current_path, path, arch, mode) - for test in result: - test.parallel = True - return result - class AbortTestConfiguration(SimpleTestConfiguration): def __init__(self, context, root, section, additional=None): super(AbortTestConfiguration, self).__init__(context, root, section,