summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/binding/RemoteCommunicatorI.cs
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-11-25 13:13:22 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-11-25 13:13:22 +0100
commitdcdc32af1fced49d80a8ccd93230e15d91ab45d8 (patch)
treeeb69e2555fbd54496fce8a33f4dd610e1473ff51 /csharp/test/Ice/binding/RemoteCommunicatorI.cs
parentC# IceSSL/configuration log expired certificate exceptions. (diff)
downloadice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.tar.bz2
ice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.tar.xz
ice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.zip
Refactored test scripts
Diffstat (limited to 'csharp/test/Ice/binding/RemoteCommunicatorI.cs')
-rw-r--r--csharp/test/Ice/binding/RemoteCommunicatorI.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/csharp/test/Ice/binding/RemoteCommunicatorI.cs b/csharp/test/Ice/binding/RemoteCommunicatorI.cs
index 7c9ffc15479..ed33ad23ce6 100644
--- a/csharp/test/Ice/binding/RemoteCommunicatorI.cs
+++ b/csharp/test/Ice/binding/RemoteCommunicatorI.cs
@@ -11,17 +11,19 @@ using Test;
public class RemoteCommunicatorI : RemoteCommunicatorDisp_
{
+
+ public RemoteCommunicatorI(TestCommon.Application app)
+ {
+ _app = app;
+ }
+
public override RemoteObjectAdapterPrx
createObjectAdapter(string name, string endpts, Ice.Current current)
{
string endpoints = endpts;
if(endpoints.IndexOf("-p") < 0)
{
- // Use a fixed port if none is specified (bug 2896)
- endpoints += " -h \"" +
- (current.adapter.getCommunicator().getProperties().getPropertyWithDefault(
- "Ice.Default.Host", "127.0.0.1")) +
- "\" -p " + _nextPort++;
+ endpoints = _app.getTestEndpoint(_nextPort++, endpoints);
}
Ice.Communicator com = current.adapter.getCommunicator();
@@ -43,5 +45,6 @@ public class RemoteCommunicatorI : RemoteCommunicatorDisp_
current.adapter.getCommunicator().shutdown();
}
- private int _nextPort = 10001;
+ private TestCommon.Application _app;
+ private int _nextPort = 10;
};