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
|
es6: true
|
||||||
mongo: true
|
mongo: true
|
||||||
|
|
||||||
|
parserOptions:
|
||||||
|
ecmaVersion: 6
|
||||||
|
sourceType: "module"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Rules are documented at http://eslint.org/docs/rules/
|
# Rules are documented at http://eslint.org/docs/rules/
|
||||||
no-cond-assign: 2
|
no-cond-assign: 2
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,8 @@ function SecondaryReadsTest(name = "secondary_reads_test") {
|
||||||
assert.gt(readers.length, 0, "no readers to stop");
|
assert.gt(readers.length, 0, "no readers to stop");
|
||||||
assert.commandWorked(primaryDB.getCollection(signalColl).insert({_id: testDoneId}));
|
assert.commandWorked(primaryDB.getCollection(signalColl).insert({_id: testDoneId}));
|
||||||
for (let i = 0; i < readers.length; i++) {
|
for (let i = 0; i < readers.length; i++) {
|
||||||
const await = readers[i];
|
const awaitReader = readers[i];
|
||||||
await ();
|
awaitReader();
|
||||||
print("reader " + i + " done");
|
print("reader " + i + " done");
|
||||||
}
|
}
|
||||||
readers = [];
|
readers = [];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue