[Pkg-javascript-commits] [sockjs-client] 212/350: relax echo from child timeout

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit 0e7576d149b42edabd7a166d6cb6a513a1be6753
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Mon Oct 20 23:55:02 2014 -0400

    relax echo from child timeout
---
 tests/lib/echo-tests.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/lib/echo-tests.js b/tests/lib/echo-tests.js
index dd977ca..1b2feae 100644
--- a/tests/lib/echo-tests.js
+++ b/tests/lib/echo-tests.js
@@ -108,6 +108,7 @@ module.exports.echoFromChild = function echoFromChild(transport) {
     var hookReady, sockJsReady, timeout, i = 0;
 
     hook.open = function() {
+      debug('hook open');
       hook.iobj.loaded();
       i++;
       hookReady = true;
@@ -115,20 +116,23 @@ module.exports.echoFromChild = function echoFromChild(transport) {
       sockJsReady && hook.callback(code);
     };
     hook.onsend = function () {
+      debug('hook onsend');
       timeout = setTimeout(function() {
         expect().fail('echo timeout');
         sjs.close();
         debug('end', title);
-      }, 300);
+      }, 1000);
     };
 
     sjs.onopen = function() {
+      debug('hook sjs open');
       hook.iobj.loaded();
       i++;
       sockJsReady = true;
       hookReady && hook.callback(code);
     };
     sjs.onmessage = function(e) {
+      debug('hook sjs message, e.data');
       clearTimeout(timeout);
       expect(e.data).to.equal('a');
       expect(i).to.equal(2);
@@ -137,6 +141,7 @@ module.exports.echoFromChild = function echoFromChild(transport) {
       sjs.close();
     };
     sjs.onclose = function() {
+      debug('hook sjs close');
       done();
       debug('end', title);
     };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list