Fix traceng tests.

This commit is contained in:
grossmj committed 2018-03-30 12:10:57 +07:00
1 parent 47e5dfabd8
commit 297bbd91ec
5 files changed
+72 -57

No files matched your search

+4 -2
View File
@@ -904,9 +904,11 @@ class Project:
Start all nodes
"""
pool = Pool(concurrency=3)
emit_warning = True
for node in self.nodes.values():
if node.node_type == "traceng":
#self.controller.notification.emit("log.warning", "TraceNG nodes must be started one by one")
if node.node_type == "traceng" and emit_warning:
self.controller.notification.emit("log.warning", {"message": "TraceNG nodes must be started one by one"})
emit_warning = False
continue
pool.append(node.start)
yield from pool.join()