summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/timeout/Server.cs
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-09-15 12:18:41 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-09-15 12:18:41 +0200
commita4fb9c391caabef6de9cfbd126f4fe10755ece49 (patch)
tree36dfe5b0a110dddd09f49882649d8c2de825f4b4 /csharp/test/Ice/timeout/Server.cs
parentRemoved Eclipse .launch files (diff)
downloadice-a4fb9c391caabef6de9cfbd126f4fe10755ece49.tar.bz2
ice-a4fb9c391caabef6de9cfbd126f4fe10755ece49.tar.xz
ice-a4fb9c391caabef6de9cfbd126f4fe10755ece49.zip
Fixed timeout tests to be less time sensitive
The tests now use a controller to hold/activate the adapter instead of relying on a timer. Fixes ICE-8312.
Diffstat (limited to 'csharp/test/Ice/timeout/Server.cs')
-rw-r--r--csharp/test/Ice/timeout/Server.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/csharp/test/Ice/timeout/Server.cs b/csharp/test/Ice/timeout/Server.cs
index 1db43419a87..9cb24c03566 100644
--- a/csharp/test/Ice/timeout/Server.cs
+++ b/csharp/test/Ice/timeout/Server.cs
@@ -21,10 +21,17 @@ public class Server : TestCommon.Application
public override int run(string[] args)
{
communicator().getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
+ communicator().getProperties().setProperty("ControllerAdapter.Endpoints", getTestEndpoint(1));
+ communicator().getProperties().setProperty("ControllerAdapter.ThreadPool.Size", "1");
+
Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter");
adapter.add(new TimeoutI(), Ice.Util.stringToIdentity("timeout"));
adapter.activate();
+ Ice.ObjectAdapter controllerAdapter = communicator().createObjectAdapter("ControllerAdapter");
+ controllerAdapter.add(new ControllerI(adapter), Ice.Util.stringToIdentity("controller"));
+ controllerAdapter.activate();
+
communicator().waitForShutdown();
return 0;
}