SERVER-70553 Add module support to jstests

This commit is contained in:
Alexander Neben 2022-12-27 18:28:42 +00:00 committed by Evergreen Agent
parent f146edbdf5
commit e975f52fb0
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,10 @@ env:
es6: true
mongo: true
parserOptions:
ecmaVersion: 6
sourceType: "module"
rules:
# Rules are documented at http://eslint.org/docs/rules/
no-cond-assign: 2

View File

@ -99,8 +99,8 @@ function SecondaryReadsTest(name = "secondary_reads_test") {
assert.gt(readers.length, 0, "no readers to stop");
assert.commandWorked(primaryDB.getCollection(signalColl).insert({_id: testDoneId}));
for (let i = 0; i < readers.length; i++) {
const await = readers[i];
await ();
const awaitReader = readers[i];
awaitReader();
print("reader " + i + " done");
}
readers = [];