diff options
author | Jose <jose@zeroc.com> | 2019-09-04 17:51:39 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-09-04 17:56:18 +0200 |
commit | 58bec9c159f96f4c8c7b83a34daacf0145b2d7ac (patch) | |
tree | 2e0e4861bcae30e83d72afeb0f58f8da8b0ffb0c /cpp/test | |
parent | Fixed Ice/acm test waitForClose timing (diff) | |
download | ice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.tar.bz2 ice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.tar.xz ice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.zip |
IceStorm/single timing issue - Close #479
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/IceStorm/single/Subscriber.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp index f17a43abd6d..edf4ccc0b61 100644 --- a/cpp/test/IceStorm/single/Subscriber.cpp +++ b/cpp/test/IceStorm/single/Subscriber.cpp @@ -64,10 +64,9 @@ public: Lock sync(*this); cout << "testing " << _name << " ... " << flush; bool datagram = _name == "datagram" || _name == "batch datagram"; - IceUtil::Time timeout = (datagram) ? IceUtil::Time::seconds(5) : IceUtil::Time::seconds(30); while(_count < 1000) { - if(!timedWait(timeout)) + if(!timedWait(IceUtil::Time::seconds(30))) { if(datagram && _count > 0) { |