diff options
Diffstat (limited to 'python/test/Ice/timeout/AllTests.py')
-rw-r--r-- | python/test/Ice/timeout/AllTests.py | 8 |
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) |