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

fix exec node error test

This commit is contained in:
Dave Conway-Jones 2017-04-13 11:48:33 +01:00
parent a281b8c74e
commit 11ee1a7dcb
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D

View File

@ -211,18 +211,8 @@ describe('exec node', function() {
n4.on("input", function(msg) {
msg.should.have.property("payload");
msg.payload.should.have.property("signal","SIGTERM");
//done();
});
setTimeout(function() {
var logEvents = helper.log().args.filter(function(evt) {
return evt[0].type == "exec";
});
var i = logEvents.length - 2;
//logEvents.should.have.length(1);
logEvents[0][0].should.have.a.property('msg');
logEvents[0][0].msg.toString().should.startWith("error:Error: Command");
done();
},400);
});
n1.receive({});
});
});