summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-11-24 11:57:01 +0100
committerBenoit Foucher <benoit@zeroc.com>2015-11-24 11:57:01 +0100
commitbf534244b815ee915cf353ecf60e0350ba69ca0e (patch)
tree71f1625e5a9cdc79485bcaeba16b7463ab952fda
parentFix ICE-6839 (diff)
downloadice-bf534244b815ee915cf353ecf60e0350ba69ca0e.tar.bz2
ice-bf534244b815ee915cf353ecf60e0350ba69ca0e.tar.xz
ice-bf534244b815ee915cf353ecf60e0350ba69ca0e.zip
Fix for ICE-6896 - sporadic binding test failure with the Python language mapping
-rw-r--r--python/test/Ice/binding/TestI.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/test/Ice/binding/TestI.py b/python/test/Ice/binding/TestI.py
index c24cf074c4b..ad41d0c7d9f 100644
--- a/python/test/Ice/binding/TestI.py
+++ b/python/test/Ice/binding/TestI.py
@@ -10,7 +10,17 @@
import Ice, Test
class RemoteCommunicatorI(Test.RemoteCommunicator):
+
+ def __init__(self):
+ self._nextPort = 10001
+
def createObjectAdapter(self, name, endpoints, current=None):
+ self._nextPort += 1
+ if endpoints.find("-p") < 0:
+ endpoints += " -h \"{0}\" -p {1}".format(
+ current.adapter.getCommunicator().getProperties().getPropertyWithDefault("Ice.Default.Host", "127.0.0.1"),
+ self._nextPort)
+
com = current.adapter.getCommunicator()
com.getProperties().setProperty(name + ".ThreadPool.Size", "1")
adapter = com.createObjectAdapterWithEndpoints(name, endpoints)