From c09be02e4ea2481b22d3d88cbf9e3d678fc1ff37 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 27 Apr 2016 22:54:00 +0100 Subject: [PATCH] small fix to exec node test --- test/nodes/core/core/75-exec_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/nodes/core/core/75-exec_spec.js b/test/nodes/core/core/75-exec_spec.js index ca1fc3edb..44f570af2 100644 --- a/test/nodes/core/core/75-exec_spec.js +++ b/test/nodes/core/core/75-exec_spec.js @@ -159,9 +159,9 @@ describe('exec node', function() { var logEvents = helper.log().args.filter(function(evt) { return evt[0].type == "exec"; }); - logEvents.should.have.length(2); - logEvents[1][0].should.have.a.property('msg'); - logEvents[1][0].msg.toString().should.startWith("Exec node timeout"); + logEvents.should.have.length(1); + logEvents[0][0].should.have.a.property('msg'); + logEvents[0][0].msg.toString().should.startWith("Exec node timeout"); done(); },400); n1.receive({}); @@ -312,9 +312,9 @@ describe('exec node', function() { var logEvents = helper.log().args.filter(function(evt) { return evt[0].type == "exec"; }); - logEvents.should.have.length(2); - logEvents[1][0].should.have.a.property('msg'); - logEvents[1][0].msg.toString().should.startWith("Exec node timeout"); + logEvents.should.have.length(1); + logEvents[0][0].should.have.a.property('msg'); + logEvents[0][0].msg.toString().should.startWith("Exec node timeout"); done(); },400); n1.receive({});