summaryrefslogtreecommitdiff
path: root/ruby/test
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-05-26 14:58:12 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-05-26 14:58:12 +0200
commitf73b94efb91b2720df145b18bfc09417920af0bd (patch)
tree273b9f982c56d499744d207c234ac39833716a47 /ruby/test
parentMinor edits to js/BuildInstructions.md (diff)
downloadice-f73b94efb91b2720df145b18bfc09417920af0bd.tar.bz2
ice-f73b94efb91b2720df145b18bfc09417920af0bd.tar.xz
ice-f73b94efb91b2720df145b18bfc09417920af0bd.zip
Additional timeout test improvements
Diffstat (limited to 'ruby/test')
-rw-r--r--ruby/test/Ice/timeout/AllTests.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/ruby/test/Ice/timeout/AllTests.rb b/ruby/test/Ice/timeout/AllTests.rb
index 746191bf588..423e9ed284f 100644
--- a/ruby/test/Ice/timeout/AllTests.rb
+++ b/ruby/test/Ice/timeout/AllTests.rb
@@ -109,7 +109,7 @@ def allTests(communicator)
print "testing close timeout... "
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)
@@ -139,7 +139,7 @@ def allTests(communicator)
initData.properties = communicator.getProperties().clone()
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(500)
begin
@@ -152,7 +152,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)
begin
@@ -196,9 +196,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)
begin
to.sendData(seq)
test(false)