summaryrefslogtreecommitdiff
path: root/python/test
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-04-28 13:52:27 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-04-28 13:52:27 +0200
commitc1dc4b4cc8a54812118747b58f4646d9e55ee5c6 (patch)
tree5e4ac66360c0d8dc6abec3ce082dceb9b8417e97 /python/test
parentUWP tests warning (diff)
downloadice-c1dc4b4cc8a54812118747b58f4646d9e55ee5c6.tar.bz2
ice-c1dc4b4cc8a54812118747b58f4646d9e55ee5c6.tar.xz
ice-c1dc4b4cc8a54812118747b58f4646d9e55ee5c6.zip
Adjusted timeouts to reduce failures with slow VMs
Diffstat (limited to 'python/test')
-rw-r--r--python/test/Ice/acm/AllTests.py22
-rw-r--r--python/test/Ice/timeout/AllTests.py6
2 files changed, 14 insertions, 14 deletions
diff --git a/python/test/Ice/acm/AllTests.py b/python/test/Ice/acm/AllTests.py
index 90b5239ca02..08fff30a468 100644
--- a/python/test/Ice/acm/AllTests.py
+++ b/python/test/Ice/acm/AllTests.py
@@ -198,12 +198,12 @@ def allTests(communicator):
class InvocationHeartbeatCloseOnIdleTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "invocation with no heartbeat and close on idle", com)
- self.setClientACM(2, 1, 0) # Only close on idle.
- self.setServerACM(2, 2, 0) # Disable heartbeat on invocations
+ self.setClientACM(1, 1, 0) # Only close on idle.
+ self.setServerACM(1, 2, 0) # Disable heartbeat on invocations
def runTestCase(self, adapter, proxy):
# No close on invocation, the call should succeed this time.
- proxy.sleep(4)
+ proxy.sleep(3)
with self.m:
test(self._heartbeat == 0)
@@ -212,7 +212,7 @@ def allTests(communicator):
class CloseOnIdleTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "close on idle", com)
- self.setClientACM(2, 1, 0) # Only close on idle.
+ self.setClientACM(1, 1, 0) # Only close on idle.
def runTestCase(self, adapter, proxy):
time.sleep(3) # Idle for 3 seconds
@@ -224,7 +224,7 @@ def allTests(communicator):
class CloseOnInvocationTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "close on invocation", com)
- self.setClientACM(2, 2, 0) # Only close on invocation.
+ self.setClientACM(1, 2, 0) # Only close on invocation.
def runTestCase(self, adapter, proxy):
time.sleep(3) # Idle for 3 seconds
@@ -236,7 +236,7 @@ def allTests(communicator):
class CloseOnIdleAndInvocationTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "close on idle and invocation", com)
- self.setClientACM(2, 3, 0) # Only close on idle and invocation.
+ self.setClientACM(1, 3, 0) # Only close on idle and invocation.
def runTestCase(self, adapter, proxy):
#
@@ -260,7 +260,7 @@ def allTests(communicator):
class ForcefulCloseOnIdleAndInvocationTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "forceful close on idle and invocation", com)
- self.setClientACM(2, 4, 0) # Only close on idle and invocation.
+ self.setClientACM(1, 4, 0) # Only close on idle and invocation.
def runTestCase(self, adapter, proxy):
adapter.hold()
@@ -273,10 +273,10 @@ def allTests(communicator):
class HeartbeatOnIdleTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "heartbeat on idle", com)
- self.setServerACM(2, -1, 2) # Enable server heartbeats.
+ self.setServerACM(1, -1, 2) # Enable server heartbeats.
def runTestCase(self, adapter, proxy):
- time.sleep(4)
+ time.sleep(3)
with self.m:
test(self._heartbeat >= 3)
@@ -284,12 +284,12 @@ def allTests(communicator):
class HeartbeatAlwaysTest(TestCase):
def __init__(self, com):
TestCase.__init__(self, "heartbeat always", com)
- self.setServerACM(2, -1, 3) # Enable server heartbeats.
+ self.setServerACM(1, -1, 3) # Enable server heartbeats.
def runTestCase(self, adapter, proxy):
for i in range(0, 10):
proxy.ice_ping()
- time.sleep(0.4)
+ time.sleep(0.3)
with self.m:
test(self._heartbeat >= 3)
diff --git a/python/test/Ice/timeout/AllTests.py b/python/test/Ice/timeout/AllTests.py
index 9c2590fa623..9b9c6cb302f 100644
--- a/python/test/Ice/timeout/AllTests.py
+++ b/python/test/Ice/timeout/AllTests.py
@@ -152,15 +152,15 @@ def allTests(communicator):
sys.stdout.write("testing close timeout... ")
sys.stdout.flush()
- to = Test.TimeoutPrx.checkedCast(obj.ice_timeout(100))
+ to = Test.TimeoutPrx.checkedCast(obj.ice_timeout(250))
connection = to.ice_getConnection()
- timeout.holdAdapter(500)
+ timeout.holdAdapter(600)
connection.close(Ice.ConnectionClose.GracefullyWithWait)
try:
connection.getInfo(); # getInfo() doesn't throw in the closing state.
except Ice.LocalException:
test(False)
- time.sleep(0.5)
+ time.sleep(0.65)
try:
connection.getInfo()
test(False)