From 873ec599707c3abbea2c3203aa4d8c1e98e2dcd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Fri, 7 Apr 2017 16:22:43 +0200 Subject: [PATCH] fix port number reservation --- .../tests/concurrentSession/TestMinimalExample.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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() -- 2.39.2