summaryrefslogtreecommitdiff
path: root/java/test
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-02-17 18:23:04 +0000
committerMarc Laukien <marc@zeroc.com>2004-02-17 18:23:04 +0000
commited4330c0f7274190b2eff63bfbfe4925a08fa154 (patch)
treee17a0178d1840e7e282bf6e2875c20878433dfdf /java/test
parentmore AMI and other cleanup (diff)
downloadice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.bz2
ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.xz
ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.zip
fix
Diffstat (limited to 'java/test')
-rw-r--r--java/test/Ice/faultTolerance/Client.java12
-rw-r--r--java/test/Ice/operations/Client.java14
2 files changed, 20 insertions, 6 deletions
diff --git a/java/test/Ice/faultTolerance/Client.java b/java/test/Ice/faultTolerance/Client.java
index bfa08039476..434d3ed441b 100644
--- a/java/test/Ice/faultTolerance/Client.java
+++ b/java/test/Ice/faultTolerance/Client.java
@@ -75,8 +75,16 @@ public class Client
try
{
- communicator = Ice.Util.initialize(args);
- status = run(args, communicator);
+ Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
+ Ice.Properties properties = Ice.Util.getDefaultProperties(argsH);
+
+ //
+ // This test aborts servers, so we don't want warnings.
+ //
+ properties.setProperty("Ice.Warn.Connections", "0");
+
+ communicator = Ice.Util.initialize(argsH);
+ status = run(argsH.value, communicator);
}
catch(Ice.LocalException ex)
{
diff --git a/java/test/Ice/operations/Client.java b/java/test/Ice/operations/Client.java
index 2afe9118fe6..53ffb0637d6 100644
--- a/java/test/Ice/operations/Client.java
+++ b/java/test/Ice/operations/Client.java
@@ -43,12 +43,18 @@ public class Client
try
{
- Ice.Properties properties = Ice.Util.getDefaultProperties();
- properties.setProperty("Ice.ThreadPool.Client.Size", "2"); // For nested AMI.
+ Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
+ Ice.Properties properties = Ice.Util.getDefaultProperties(argsH);
+
+ //
+ // In this test, we need at least two threads in the
+ // client side thread pool for nested AMI.
+ //
+ properties.setProperty("Ice.ThreadPool.Client.Size", "2");
properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
- communicator = Ice.Util.initialize(args);
- status = run(args, communicator);
+ communicator = Ice.Util.initialize(argsH);
+ status = run(argsH.value, communicator);
}
catch(Ice.LocalException ex)
{