clean up
This commit is contained in:
@@ -96,9 +96,7 @@ class NodeManager:
|
|||||||
self.config.hook.pytest_xdist_setupnodes(config=self.config, specs=self.specs)
|
self.config.hook.pytest_xdist_setupnodes(config=self.config, specs=self.specs)
|
||||||
self.trace("setting up nodes")
|
self.trace("setting up nodes")
|
||||||
with ThreadPoolExecutor(max_workers=len(self.specs)) as executor:
|
with ThreadPoolExecutor(max_workers=len(self.specs)) as executor:
|
||||||
futs = [
|
futs = [executor.submit(self.setup_node, spec, putevent) for spec in self.specs]
|
||||||
executor.submit(self.setup_node, spec, putevent) for spec in self.specs
|
|
||||||
]
|
|
||||||
return [f.result() for f in futs]
|
return [f.result() for f in futs]
|
||||||
|
|
||||||
def setup_node(
|
def setup_node(
|
||||||
|
|||||||
Reference in New Issue
Block a user