summaryrefslogtreecommitdiff
path: root/python/test/Ice/acm
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/Ice/acm
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/Ice/acm')
-rw-r--r--python/test/Ice/acm/AllTests.py22
1 files changed, 11 insertions, 11 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)