-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.5.9
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
TIG 2017-12-04
for (let dbName of dbNames) { cmds.then("DEBUG: validating " + dbName, function(conn) { if (!validateCollections(conn.getDB(dbName), {full: true})) { return {shouldStop: true, reason: "collection validation failed"}; } }); }
The function above ends up using the last dbName for each run of the loop, rather than rebinding dbName for each value.
- is related to
-
SERVER-28590 Call validate before any mongod is shut down in our tests
- Closed