summaryrefslogtreecommitdiff
path: root/python/test
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-05-25 15:26:27 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-05-25 15:26:27 +0200
commit88667109d3395bd5e3a94d7887bafb58ce2ddf08 (patch)
tree8da30e13564cc67ef00e42522418ecc160e557af /python/test
parentFix (ICE-7915) - Fix UWP/JS controllers to setup the bidir connection before ... (diff)
downloadice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.tar.bz2
ice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.tar.xz
ice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.zip
Fixed sporadic timeout & bridge test failures
Diffstat (limited to 'python/test')
-rw-r--r--python/test/Ice/timeout/AllTests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/test/Ice/timeout/AllTests.py b/python/test/Ice/timeout/AllTests.py
index 9f0f34ad77d..8711502eb3d 100644
--- a/python/test/Ice/timeout/AllTests.py
+++ b/python/test/Ice/timeout/AllTests.py
@@ -153,6 +153,14 @@ def allTests(communicator):
sys.stdout.write("testing close timeout... ")
sys.stdout.flush()
to = Test.TimeoutPrx.checkedCast(obj.ice_timeout(250))
+ nRetry = 5
+ while --nRetry > 0:
+ try:
+ to.ice_getConnection();
+ break
+ except Ice.ConnectTimeoutException:
+ # Can sporadically occur with slow machines
+ pass
connection = to.ice_getConnection()
timeout.holdAdapter(600)
connection.close(Ice.ConnectionClose.GracefullyWithWait)