diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-03-20 21:18:10 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-03-20 21:18:25 +0100 |
commit | a157ae70831fd23d0c27f118d108d7f13bce3b45 (patch) | |
tree | ae65d3dbfff9ef416e94e49a22d1a826d95a9e0c /python/test/Ice/acm | |
parent | Run JavaScript es6 test suite with Edge (diff) | |
download | ice-a157ae70831fd23d0c27f118d108d7f13bce3b45.tar.bz2 ice-a157ae70831fd23d0c27f118d108d7f13bce3b45.tar.xz ice-a157ae70831fd23d0c27f118d108d7f13bce3b45.zip |
Added sanity checks for ACM timeout value (ICE-8749)
Diffstat (limited to 'python/test/Ice/acm')
-rw-r--r-- | python/test/Ice/acm/AllTests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/test/Ice/acm/AllTests.py b/python/test/Ice/acm/AllTests.py index 8a694efbe67..29d3209b650 100644 --- a/python/test/Ice/acm/AllTests.py +++ b/python/test/Ice/acm/AllTests.py @@ -165,7 +165,7 @@ def allTests(communicator): proxy.sleep(4) with self.m: - test(self._heartbeat >= 6) + test(self._heartbeat >= 4) class InvocationHeartbeatOnHoldTest(TestCase): def __init__(self, com): @@ -328,6 +328,12 @@ def allTests(communicator): self.setClientACM(15, 4, 0) def runTestCase(self, adapter, proxy): + try: + proxy.ice_getCachedConnection().setACM(-19, Ice.Unset, Ice.Unset) + test(False) + except RuntimeError: + pass + acm = proxy.ice_getCachedConnection().getACM() test(acm.timeout == 15) test(acm.close == Ice.ACMClose.CloseOnIdleForceful) |