1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

small fix to exec node test

This commit is contained in:
Dave Conway-Jones 2016-04-27 22:54:00 +01:00
parent bd59398cab
commit c09be02e4e

View File

@ -159,9 +159,9 @@ describe('exec node', function() {
var logEvents = helper.log().args.filter(function(evt) { var logEvents = helper.log().args.filter(function(evt) {
return evt[0].type == "exec"; return evt[0].type == "exec";
}); });
logEvents.should.have.length(2); logEvents.should.have.length(1);
logEvents[1][0].should.have.a.property('msg'); logEvents[0][0].should.have.a.property('msg');
logEvents[1][0].msg.toString().should.startWith("Exec node timeout"); logEvents[0][0].msg.toString().should.startWith("Exec node timeout");
done(); done();
},400); },400);
n1.receive({}); n1.receive({});
@ -312,9 +312,9 @@ describe('exec node', function() {
var logEvents = helper.log().args.filter(function(evt) { var logEvents = helper.log().args.filter(function(evt) {
return evt[0].type == "exec"; return evt[0].type == "exec";
}); });
logEvents.should.have.length(2); logEvents.should.have.length(1);
logEvents[1][0].should.have.a.property('msg'); logEvents[0][0].should.have.a.property('msg');
logEvents[1][0].msg.toString().should.startWith("Exec node timeout"); logEvents[0][0].msg.toString().should.startWith("Exec node timeout");
done(); done();
},400); },400);
n1.receive({}); n1.receive({});