[Pkg-javascript-commits] [sockjs-client] 158/350: debug echo tests

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:58 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 c3088e2b1bac448e1c48264e306fa690d8055d34
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Thu Oct 16 19:54:41 2014 -0400

    debug echo tests
---
 tests/lib/echo-tests.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/lib/echo-tests.js b/tests/lib/echo-tests.js
index fb364aa..eeff585 100644
--- a/tests/lib/echo-tests.js
+++ b/tests/lib/echo-tests.js
@@ -1,10 +1,13 @@
 'use strict';
 var expect = require('expect.js')
   , testUtils = require('./test-utils')
+  , debug = require('debug')('sockjs-client:tests:echo')
   ;
 
 function echoFactory(transport, messages) {
   return function (done) {
+    var title = this.runnable().fullTitle();
+    debug('start', title);
     this.timeout(10000);
     var msgs = messages.slice(0);
 
@@ -26,6 +29,7 @@ function echoFactory(transport, messages) {
       expect(e.code).to.equal(1000);
       expect(msgs).to.have.length(0);
       done();
+      debug('end', title);
     };
   };
 }
@@ -98,7 +102,7 @@ module.exports.echoFromChild = function echoFromChild(transport) {
     };
     hook.onsend = function () {
       timeout = setTimeout(function() {
-        expect().fail();
+        expect().fail('echo timeout');
         sjs.close();
       }, 300);
     };

-- 
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