summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-04-28 13:55:31 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-04-28 14:49:55 +0200
commit816f5da0a4d3cc2fb1a6ed68b6bc6f179481a497 (patch)
tree067e3b3b4bc4b721a1b19d961c0a1766f47c34ce /cpp
parentAdjusted timeouts to reduce failures with slow VMs (diff)
downloadice-816f5da0a4d3cc2fb1a6ed68b6bc6f179481a497.tar.bz2
ice-816f5da0a4d3cc2fb1a6ed68b6bc6f179481a497.tar.xz
ice-816f5da0a4d3cc2fb1a6ed68b6bc6f179481a497.zip
Fixed ICE-7841 - IceStorm/stress failure
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/IceStorm/stress/Subscriber.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/test/IceStorm/stress/Subscriber.cpp b/cpp/test/IceStorm/stress/Subscriber.cpp
index e05ebbea313..d7c255f9177 100644
--- a/cpp/test/IceStorm/stress/Subscriber.cpp
+++ b/cpp/test/IceStorm/stress/Subscriber.cpp
@@ -233,7 +233,16 @@ public:
{
try
{
- subscription.publisher->ice_ping();
+ //
+ // check might be invoked before IceStorm got a chance to process the close connection
+ // message from this subscriber, retry if the ice_ping still succeeds.
+ //
+ int nRetry = 5;
+ while(--nRetry > 0)
+ {
+ subscription.publisher->ice_ping();
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(200));
+ }
test(false);
}
catch(const Ice::ObjectNotExistException&)