mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Make exec node test more tolerant of multiple messages being received
This commit is contained in:
		@@ -881,9 +881,9 @@ describe('exec node', function() {
 | 
			
		||||
                var received = 0;
 | 
			
		||||
                var messages = [null,null];
 | 
			
		||||
                var completeTest = function() {
 | 
			
		||||
                    received++;
 | 
			
		||||
                    if (received < 2) {
 | 
			
		||||
                        return;
 | 
			
		||||
                    if (messages[0] === null || messages[1] === null) {
 | 
			
		||||
                        // We have not yet had responses on both ports.
 | 
			
		||||
                        return
 | 
			
		||||
                    }
 | 
			
		||||
                    try {
 | 
			
		||||
                        var msg = messages[0];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user