]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0023629: [CEA] KERNEL_SALOME_CONCURRENT_TestConcurrentSession: does not return
authorvsr <vsr@opencascade.com>
Thu, 15 Nov 2018 13:48:42 +0000 (16:48 +0300)
committervsr <vsr@opencascade.com>
Thu, 15 Nov 2018 13:48:42 +0000 (16:48 +0300)
bin/appliskel/tests/concurrentSession/TestConcurrentSession.py

index 59ff65c806fb0f5e814bc92714e4c08deb665d60..f11dc4d9c96498d490832612949a23acae41dea4 100644 (file)
@@ -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()