Make exec node test more tolerant of multiple messages being received

This commit is contained in:
Nick O'Leary 2018-10-23 11:33:00 +01:00
parent 7476b4c7db
commit 6382564727
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 3 deletions

View File

@ -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];