0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-40106 Prevent js_exceptions.js from getting confused by ECDHE warning

This commit is contained in:
Shreyas Kalyan 2019-04-15 17:15:34 -04:00
parent b0526e0641
commit 8560239dba
No known key found for this signature in database
GPG Key ID: 338894C0E8F3CB2F

View File

@ -88,7 +88,14 @@
code + ";\nrecurser(0," + depth + "," + tojson(t.callback) + ");", false, true));
let output = rawMongoProgramOutput();
let lines = output.split(/\s*\n/);
assertMatch(/MongoDB shell version/, lines.shift());
let matchShellExp = false;
while (lines.length > 0 & matchShellExp !== true) {
let line = lines.shift();
if (line.match(/MongoDB shell version/)) {
matchShellExp = true;
}
}
assert(matchShellExp);
assertMatch(/^\s*$/, lines.pop());
assertMatch(/exiting with code/, lines.pop());
assertMatch(new RegExp("\\\[js\\\] " + t.match + "$"), lines.shift());