diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-05-25 15:26:27 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-05-25 15:26:27 +0200 |
commit | 88667109d3395bd5e3a94d7887bafb58ce2ddf08 (patch) | |
tree | 8da30e13564cc67ef00e42522418ecc160e557af /ruby/test | |
parent | Fix (ICE-7915) - Fix UWP/JS controllers to setup the bidir connection before ... (diff) | |
download | ice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.tar.bz2 ice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.tar.xz ice-88667109d3395bd5e3a94d7887bafb58ce2ddf08.zip |
Fixed sporadic timeout & bridge test failures
Diffstat (limited to 'ruby/test')
-rw-r--r-- | ruby/test/Ice/timeout/AllTests.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ruby/test/Ice/timeout/AllTests.rb b/ruby/test/Ice/timeout/AllTests.rb index 81b3fb50c93..4b62a9b1712 100644 --- a/ruby/test/Ice/timeout/AllTests.rb +++ b/ruby/test/Ice/timeout/AllTests.rb @@ -96,6 +96,16 @@ def allTests(communicator) print "testing close timeout... " STDOUT.flush to = Test::TimeoutPrx.checkedCast(obj.ice_timeout(250)) + nRetry = 5 + while nRetry > 0 do + nRetry -=1 + begin + to.ice_getConnection() # Establish connection. + break + rescue Ice::ConnectTimeoutException + # Can sporadically occur with slow machines + end + end connection = to.ice_getConnection() timeout.holdAdapter(600) connection.close(Ice::ConnectionClose::GracefullyWithWait) |