summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/udp/AllTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/udp/AllTests.cs')
-rw-r--r--csharp/test/Ice/udp/AllTests.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/csharp/test/Ice/udp/AllTests.cs b/csharp/test/Ice/udp/AllTests.cs
index c4cf0b1af7a..266acfc3266 100644
--- a/csharp/test/Ice/udp/AllTests.cs
+++ b/csharp/test/Ice/udp/AllTests.cs
@@ -64,9 +64,10 @@ public class AllTests
private int _replies = 0;
}
- public static void allTests(Ice.Communicator communicator)
+ public static void allTests(TestCommon.Application app)
{
- communicator.getProperties().setProperty("ReplyAdapter.Endpoints", "udp -p 12030");
+ Ice.Communicator communicator = app.communicator();
+ communicator.getProperties().setProperty("ReplyAdapter.Endpoints", "udp");
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("ReplyAdapter");
PingReplyI replyI = new PingReplyI();
Test.PingReplyPrx reply =
@@ -75,7 +76,7 @@ public class AllTests
Console.Out.Write("testing udp... ");
Console.Out.Flush();
- Ice.ObjectPrx @base = communicator.stringToProxy("test:udp -p 12010").ice_datagram();
+ Ice.ObjectPrx @base = communicator.stringToProxy("test:" + app.getTestEndpoint(0, "udp")).ice_datagram();
Test.TestIntfPrx obj = Test.TestIntfPrxHelper.uncheckedCast(@base);
int nRetry = 5;
@@ -122,7 +123,7 @@ public class AllTests
//
// The server's Ice.UDP.RcvSize property is set to 16384, which means that DatagramLimitException
// will be throw when try to send a packet bigger than that. However, Mono 2.10 bug in setting Socket
- // options could cause the RcvSize/SndSize to contain an arbitrary value so the test might fail
+ // options could cause the RcvSize/SndSize to contain an arbitrary value so the test might fail
// with smaller message sizes.
//
test(seq.Length > 16384 || IceInternal.AssemblyUtil.runtime_ == IceInternal.AssemblyUtil.Runtime.Mono);
@@ -138,8 +139,8 @@ public class AllTests
bool b = replyI.waitReply(1, 500);
//
// The server's Ice.UDP.RcvSize property is set to 16384, which means this packet
- // should not be delivered. However, Mono 2.10 bug in setting Socket options could
- // cause the RcvSize/SndSize to contain an arbitrary value so the packet might
+ // should not be delivered. However, Mono 2.10 bug in setting Socket options could
+ // cause the RcvSize/SndSize to contain an arbitrary value so the packet might
// be delivered successfully.
//
test(!b || IceInternal.AssemblyUtil.runtime_ == IceInternal.AssemblyUtil.Runtime.Mono);
@@ -148,7 +149,7 @@ public class AllTests
{
//
// Mono 2.10 bug in setting Socket options could cause the RcvSize/SndSize to contain
- // an arbitrary value so the message send might fail if the effetive SndSize is minor
+ // an arbitrary value so the message send might fail if the effetive SndSize is minor
// than expected.
//
test(IceInternal.AssemblyUtil.runtime_ == IceInternal.AssemblyUtil.Runtime.Mono);