mirror of https://github.com/mongodb/mongo
SERVER-70553 Add module support to jstests
This commit is contained in:
parent
f146edbdf5
commit
e975f52fb0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue