summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2019-09-24 13:37:44 +0200
committerBenoit Foucher <benoit@zeroc.com>2019-09-24 15:33:14 +0200
commitf36869725c29a23a903a5533ff18c86c55092355 (patch)
treeb1630868a1932d3378dea4746eb135350134d1a8 /cpp/test
parentFix DK 13 build failures (diff)
downloadice-f36869725c29a23a903a5533ff18c86c55092355.tar.bz2
ice-f36869725c29a23a903a5533ff18c86c55092355.tar.xz
ice-f36869725c29a23a903a5533ff18c86c55092355.zip
Fix for invocation timeout sporadic test failure, fixes #547
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Ice/timeout/AllTests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/Ice/timeout/AllTests.cpp b/cpp/test/Ice/timeout/AllTests.cpp
index b6bde584ec2..42fb207a96a 100644
--- a/cpp/test/Ice/timeout/AllTests.cpp
+++ b/cpp/test/Ice/timeout/AllTests.cpp
@@ -201,7 +201,7 @@ allTestsWithController(Test::TestHelper* helper, const ControllerPrxPtr& control
test(connection == to->ice_getConnection());
try
{
- to->sleep(500);
+ to->sleep(1000);
test(false);
}
catch(const Ice::InvocationTimeoutException&)
@@ -227,7 +227,7 @@ allTestsWithController(Test::TestHelper* helper, const ControllerPrxPtr& control
TimeoutPrxPtr to = ICE_UNCHECKED_CAST(TimeoutPrx, obj->ice_invocationTimeout(100));
#ifdef ICE_CPP11_MAPPING
- auto f = to->sleepAsync(500);
+ auto f = to->sleepAsync(1000);
try
{
f.get();
@@ -242,7 +242,7 @@ allTestsWithController(Test::TestHelper* helper, const ControllerPrxPtr& control
}
#else
CallbackPtr cb = new Callback();
- to->begin_sleep(500, newCallback_Timeout_sleep(cb, &Callback::responseEx, &Callback::exceptionEx));
+ to->begin_sleep(1000, newCallback_Timeout_sleep(cb, &Callback::responseEx, &Callback::exceptionEx));
cb->check();
#endif
obj->ice_ping();