mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	small fix to exec node test
This commit is contained in:
		@@ -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({});
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user