From a157ae70831fd23d0c27f118d108d7f13bce3b45 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Tue, 20 Mar 2018 21:18:10 +0100 Subject: Added sanity checks for ACM timeout value (ICE-8749) --- js/test/Ice/acm/Client.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'js/test/Ice/acm/Client.js') diff --git a/js/test/Ice/acm/Client.js b/js/test/Ice/acm/Client.js index c86676a9553..8da91a6c2d9 100644 --- a/js/test/Ice/acm/Client.js +++ b/js/test/Ice/acm/Client.js @@ -191,7 +191,7 @@ async runTestCase(adapter, proxy) { await proxy.sleep(4); - test(this._heartbeat >= 6); + test(this._heartbeat >= 4); } } @@ -415,6 +415,15 @@ { let con = proxy.ice_getCachedConnection(); + try + { + con.setACM(-19, undefined, undefined); + test(false); + } + catch(ex) + { + } + let acm = con.getACM(); test(acm.timeout === 15); test(acm.close === Ice.ACMClose.CloseOnIdleForceful); -- cgit v1.2.3