summaryrefslogtreecommitdiff
path: root/python/test/Ice/binding/TestI.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice/binding/TestI.py')
-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)