summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-09-04 17:51:39 +0200
committerJose <jose@zeroc.com>2019-09-04 17:56:18 +0200
commit58bec9c159f96f4c8c7b83a34daacf0145b2d7ac (patch)
tree2e0e4861bcae30e83d72afeb0f58f8da8b0ffb0c
parentFixed Ice/acm test waitForClose timing (diff)
downloadice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.tar.bz2
ice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.tar.xz
ice-58bec9c159f96f4c8c7b83a34daacf0145b2d7ac.zip
IceStorm/single timing issue - Close #479
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp3
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)
{