summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/stress/Subscriber.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 13:55:31 +0200
commit1c39b7104d74d53946169df93f7f70189c535ce8 (patch)
treeae03acb2fa68c06c58f691473ebec3a506282f2e /cpp/test/IceStorm/stress/Subscriber.cpp
parentAdjusted timeouts to reduce failures with slow VMs (diff)
downloadice-1c39b7104d74d53946169df93f7f70189c535ce8.tar.bz2
ice-1c39b7104d74d53946169df93f7f70189c535ce8.tar.xz
ice-1c39b7104d74d53946169df93f7f70189c535ce8.zip
Fixed ICE-7841 - IceStorm/stress failure
Diffstat (limited to 'cpp/test/IceStorm/stress/Subscriber.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&)