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