diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-04-28 13:55:31 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-04-28 14:49:55 +0200 |
commit | 816f5da0a4d3cc2fb1a6ed68b6bc6f179481a497 (patch) | |
tree | 067e3b3b4bc4b721a1b19d961c0a1766f47c34ce /cpp | |
parent | Adjusted timeouts to reduce failures with slow VMs (diff) | |
download | ice-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.cpp | 11 |
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&) |