From ab8bd74a4dd55cd7c24c05e634ea9aff25bffb21 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 15 Nov 2018 16:48:42 +0300 Subject: [PATCH] 0023629: [CEA] KERNEL_SALOME_CONCURRENT_TestConcurrentSession: does not return --- .../tests/concurrentSession/TestConcurrentSession.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py b/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py index 59ff65c80..f11dc4d9c 100644 --- a/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py +++ b/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py @@ -44,7 +44,10 @@ class TestConcurrentLaunch(unittest.TestCase): return running_instances, processes # def __terminateInstances(self, running_instances): - while not running_instances.empty(): + import time + timeout = time.time() + 60*10 # the test duration is about 50 s, we reasonably assume a max duration of 10mn + + while not running_instances.empty() and time.time() < timeout: instance = running_instances.get() print("Terminate instance running on port", instance.get_port()) instance.stop() -- 2.39.2