summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/metrics/AllTests.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/test/Ice/metrics/AllTests.cpp b/cpp/test/Ice/metrics/AllTests.cpp
index 8141a1c2df7..e37e44d0c23 100644
--- a/cpp/test/Ice/metrics/AllTests.cpp
+++ b/cpp/test/Ice/metrics/AllTests.cpp
@@ -1447,6 +1447,17 @@ allTests(const Ice::CommunicatorPtr& communicator, const CommunicatorObserverIPt
test(obsv->invocationObserver->collocatedObserver->getCurrent() == 0);
}
test(obsv->dispatchObserver->getCurrent() == 0);
+ for(int i = 0; i < 10; ++i)
+ {
+ if(obsv->invocationObserver->getCurrent() > 0)
+ {
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(50));
+ }
+ else
+ {
+ break;
+ }
+ }
test(obsv->invocationObserver->getCurrent() == 0);
test(obsv->threadObserver->getFailedCount() == 0);