From 3a056c04090ae58bef7ed8af9abf68228d8ff41a 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 9f75273938e..79e8c6834eb 100644 --- a/test/async-hooks/testcfg.py +++ b/test/async-hooks/testcfg.py @@ -3,4 +3,4 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..')) 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 455d57f4d91..8b5b2f6b48f 100644 --- a/test/testpy/__init__.py +++ b/test/testpy/__init__.py @@ -165,18 +165,6 @@ class AddonTestConfiguration(SimpleTestConfiguration): 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,