mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
test: remove custom AsyncHooksTestConfiguration
Has the same behavior as `ParallelTestConfiguration` PR-URL: https://github.com/nodejs/node/pull/22008 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
48e17630ad
commit
3a056c0409
@ -3,4 +3,4 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
|||||||
import testpy
|
import testpy
|
||||||
|
|
||||||
def GetConfiguration(context, root):
|
def GetConfiguration(context, root):
|
||||||
return testpy.AsyncHooksTestConfiguration(context, root, 'async-hooks')
|
return testpy.ParallelTestConfiguration(context, root, 'async-hooks')
|
||||||
|
@ -165,18 +165,6 @@ class AddonTestConfiguration(SimpleTestConfiguration):
|
|||||||
SimpleTestCase(test, file_path, arch, mode, self.context, self, self.additional_flags))
|
SimpleTestCase(test, file_path, arch, mode, self.context, self, self.additional_flags))
|
||||||
return result
|
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):
|
class AbortTestConfiguration(SimpleTestConfiguration):
|
||||||
def __init__(self, context, root, section, additional=None):
|
def __init__(self, context, root, section, additional=None):
|
||||||
super(AbortTestConfiguration, self).__init__(context, root, section,
|
super(AbortTestConfiguration, self).__init__(context, root, section,
|
||||||
|
Loading…
Reference in New Issue
Block a user