From 3df3d6f5162ea7598f2721354133a5d763ead1fb Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 24 May 2018 10:02:51 +0100 Subject: [PATCH] add debug to trigger test to help work out fails --- test/nodes/core/core/89-trigger_spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/nodes/core/core/89-trigger_spec.js b/test/nodes/core/core/89-trigger_spec.js index fb1b1df9a..d07ab2a9b 100644 --- a/test/nodes/core/core/89-trigger_spec.js +++ b/test/nodes/core/core/89-trigger_spec.js @@ -428,13 +428,14 @@ describe('trigger node', function() { n2.on("input", function(msg) { try { if (c === 0) { + console.log(c,Date.now() - ss,msg); msg.should.have.a.property("payload", "Hello"); c += 1; } else { + console.log(c,Date.now() - ss,msg); msg.should.have.a.property("payload", "World"); - //console.log(Date.now() - ss); - (Date.now() - ss).should.be.greaterThan(140); + (Date.now() - ss).should.be.greaterThan(150); done(); } } @@ -444,7 +445,7 @@ describe('trigger node', function() { n1.emit("input", {payload:"Hello"}); setTimeout( function() { n1.emit("input", {payload:"Error"}); - },20); + },30); setTimeout( function() { n1.emit("input", {payload:"World"}); },150);