mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Apply suggestions from code review
This commit is contained in:
@@ -1425,7 +1425,7 @@ describe('function node', function() {
|
||||
});
|
||||
|
||||
it('should timeout if timeout is set', function(done) {
|
||||
var flow = [{id:"n1",type:"function",wires:[["n2"]],timeout:"10",func:"while(1==1){};\nreturn msg;"}];
|
||||
var flow = [{id:"n1",type:"function",wires:[["n2"]],timeout:"0.010",func:"while(1==1){};\nreturn msg;"}];
|
||||
helper.load(functionNode, flow, function() {
|
||||
var n1 = helper.getNode("n1");
|
||||
n1.receive({payload:"foo",topic: "bar"});
|
||||
|
Reference in New Issue
Block a user