summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/faultTolerance/run.py
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-07-05 02:02:39 +0000
committerMichi Henning <michi@zeroc.com>2004-07-05 02:02:39 +0000
commit970d5853f5b51c007ec50ca2fc41fa1a03598084 (patch)
treed66312f64467a294c39a8eaef86a8ba3e2358806 /cpp/test/Ice/faultTolerance/run.py
parentChanged Instance.cpp to print process ID only once if there are multiple (diff)
downloadice-970d5853f5b51c007ec50ca2fc41fa1a03598084.tar.bz2
ice-970d5853f5b51c007ec50ca2fc41fa1a03598084.tar.xz
ice-970d5853f5b51c007ec50ca2fc41fa1a03598084.zip
Updated fault tolerance tests to correctly destroy the communicator created
by the client. This has exposed a bug in the Ice run time. With the way the test now works, the client receives a ConnectionRefusedException whereas, previously, the adapter was deactivated on the server side. Depending on how endpoints are shuffled in Reference.cpp, this occasionally causes a test failure. It appears that we need to change the run time to - recognize when an endpoint has gone dead and react correctly - avoid re-trying endpoints that have previously failed As is, the test gets slower and slower towards the end because it keeps trying endpoints of servers that were killed in previous iterations.
Diffstat (limited to 'cpp/test/Ice/faultTolerance/run.py')
-rwxr-xr-xcpp/test/Ice/faultTolerance/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/faultTolerance/run.py b/cpp/test/Ice/faultTolerance/run.py
index d3882612077..b415944f184 100755
--- a/cpp/test/Ice/faultTolerance/run.py
+++ b/cpp/test/Ice/faultTolerance/run.py
@@ -32,14 +32,14 @@ base = 12340
serverPipes = { }
for i in range(0, num):
print "starting server #%d..." % (i + 1),
- serverPipes[i] = os.popen(server + TestUtil.serverOptions + " %d" % (base + i) + " 2>&1")
+ serverPipes[i] = os.popen(server + TestUtil.serverOptions + " %d" % (base + 2 * i) + " 2>&1")
TestUtil.getServerPid(serverPipes[i])
TestUtil.getAdapterReady(serverPipes[i])
print "ok"
ports = ""
for i in range(0, num):
- ports = "%s %d" % (ports, base + i)
+ ports = "%s %d" % (ports, base + 2 * i)
print "starting client...",
clientPipe = os.popen(client + TestUtil.clientOptions + " " + ports + " 2>&1")
print "ok"