From ebca58b2826993ea503befcec55297dddb173d1c Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 28 Jul 2015 16:34:13 -0700 Subject: [PATCH] Fix multiple calls to done Triggered by multiple keepalives. --- libtextsecure/test/websocket-resources_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtextsecure/test/websocket-resources_test.js b/libtextsecure/test/websocket-resources_test.js index 20b9fe95..46b70550 100644 --- a/libtextsecure/test/websocket-resources_test.js +++ b/libtextsecure/test/websocket-resources_test.js @@ -129,7 +129,7 @@ }); }); var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), { - keepalive: { path: '/v1/keepalive' } + keepalive: { path: '/v1/keepalive', disconnect: true } }); }); @@ -146,7 +146,7 @@ }); }); var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), { - keepalive: true + keepalive: { disconnect: true } }); });