From: vsr Date: Thu, 15 Nov 2018 13:48:42 +0000 (+0300) Subject: 0023629: [CEA] KERNEL_SALOME_CONCURRENT_TestConcurrentSession: does not return X-Git-Tag: V9_2_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab8bd74a4dd55cd7c24c05e634ea9aff25bffb21;p=modules%2Fkernel.git 0023629: [CEA] KERNEL_SALOME_CONCURRENT_TestConcurrentSession: does not return --- 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()