From: Cédric Aguerre Date: Fri, 7 Apr 2017 14:22:43 +0000 (+0200) Subject: fix port number reservation X-Git-Tag: Before_multi_study_removal_06072017~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=873ec599707c3abbea2c3203aa4d8c1e98e2dcd2;p=modules%2Fkernel.git fix port number reservation --- diff --git a/bin/appliskel/tests/concurrentSession/TestMinimalExample.py b/bin/appliskel/tests/concurrentSession/TestMinimalExample.py index 016453540..4498d6934 100644 --- a/bin/appliskel/tests/concurrentSession/TestMinimalExample.py +++ b/bin/appliskel/tests/concurrentSession/TestMinimalExample.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2013-2017 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -68,18 +68,18 @@ class TestMinimalExample(unittest.TestCase): p.join() # Try to get specific port number - p = multiprocessing.Process(target=port_reservation, args=(obtained_ports, 2812, self,)) + p = multiprocessing.Process(target=port_reservation, args=(obtained_ports, 2899, self, 2899,)) p.start() p.join() # Release port - print "release port 2812" - p = multiprocessing.Process(target=releasePort, args=(2812,)) + print "release port 2899" + p = multiprocessing.Process(target=releasePort, args=(2899,)) p.start() p.join() # Try to get specific port number - p = multiprocessing.Process(target=port_reservation, args=(obtained_ports, 2812, self, 2812,)) + p = multiprocessing.Process(target=port_reservation, args=(obtained_ports, 2899, self, 2899,)) p.start() p.join()