diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-05-26 14:58:12 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-05-26 14:58:12 +0200 |
commit | f73b94efb91b2720df145b18bfc09417920af0bd (patch) | |
tree | 273b9f982c56d499744d207c234ac39833716a47 /python/test | |
parent | Minor edits to js/BuildInstructions.md (diff) | |
download | ice-f73b94efb91b2720df145b18bfc09417920af0bd.tar.bz2 ice-f73b94efb91b2720df145b18bfc09417920af0bd.tar.xz ice-f73b94efb91b2720df145b18bfc09417920af0bd.zip |
Additional timeout test improvements
Diffstat (limited to 'python/test')
-rw-r--r-- | python/test/Ice/timeout/AllTests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/test/Ice/timeout/AllTests.py b/python/test/Ice/timeout/AllTests.py index a706cc33cca..986fb129380 100644 --- a/python/test/Ice/timeout/AllTests.py +++ b/python/test/Ice/timeout/AllTests.py @@ -168,7 +168,7 @@ def allTests(communicator): sys.stdout.write("testing close timeout... ") sys.stdout.flush() - to = Test.TimeoutPrx.checkedCast(obj.ice_timeout(250)) + to = Test.TimeoutPrx.uncheckedCast(obj.ice_timeout(250)) connection = connect(to) timeout.holdAdapter(600) connection.close(Ice.ConnectionClose.GracefullyWithWait) @@ -195,11 +195,11 @@ def allTests(communicator): # initData = Ice.InitializationData() initData.properties = communicator.getProperties().clone() - initData.properties.setProperty("Ice.Override.Timeout", "250") + initData.properties.setProperty("Ice.Override.Timeout", "100") comm = Ice.initialize(initData) - to = Test.TimeoutPrx.checkedCast(comm.stringToProxy(sref)) + to = Test.TimeoutPrx.uncheckedCast(comm.stringToProxy(sref)) connect(to) - timeout.holdAdapter(700) + timeout.holdAdapter(500) try: to.sendData(seq) test(False) @@ -209,7 +209,7 @@ def allTests(communicator): # Calling ice_timeout() should have no effect. # timeout.op() # Ensure adapter is active. - to = Test.TimeoutPrx.checkedCast(to.ice_timeout(1000)) + to = Test.TimeoutPrx.uncheckedCast(to.ice_timeout(1000)) connect(to) timeout.holdAdapter(500) try: @@ -247,9 +247,9 @@ def allTests(communicator): # Verify that timeout set via ice_timeout() is still used for requests. # timeout.op() # Ensure adapter is active. - to = Test.TimeoutPrx.uncheckedCast(to.ice_timeout(250)) + to = Test.TimeoutPrx.uncheckedCast(to.ice_timeout(100)) connect(to) - timeout.holdAdapter(750) + timeout.holdAdapter(500) try: to.sendData(seq) test(False) |