summaryrefslogtreecommitdiff
path: root/jstests/core/collmod_without_uuid.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/collmod_without_uuid.js')
-rw-r--r--jstests/core/collmod_without_uuid.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/jstests/core/collmod_without_uuid.js b/jstests/core/collmod_without_uuid.js
index 5beb1864ad0..d3b2ca5a287 100644
--- a/jstests/core/collmod_without_uuid.js
+++ b/jstests/core/collmod_without_uuid.js
@@ -10,20 +10,20 @@
*/
(function() {
- "use strict";
- const collName = "collmod_without_uuid";
+"use strict";
+const collName = "collmod_without_uuid";
- function checkUUIDs() {
- let infos = db.getCollectionInfos();
- assert(infos.every((coll) => coll.name != collName || coll.info.uuid != undefined),
- "Not all collections have UUIDs: " + tojson({infos}));
- }
+function checkUUIDs() {
+ let infos = db.getCollectionInfos();
+ assert(infos.every((coll) => coll.name != collName || coll.info.uuid != undefined),
+ "Not all collections have UUIDs: " + tojson({infos}));
+}
- db[collName].drop();
- assert.writeOK(db[collName].insert({}));
- checkUUIDs();
- let cmd = {applyOps: [{ns: "test.$cmd", op: "c", o: {collMod: collName}}]};
- let res = db.runCommand(cmd);
- assert.commandWorked(res, tojson(cmd));
- checkUUIDs();
+db[collName].drop();
+assert.writeOK(db[collName].insert({}));
+checkUUIDs();
+let cmd = {applyOps: [{ns: "test.$cmd", op: "c", o: {collMod: collName}}]};
+let res = db.runCommand(cmd);
+assert.commandWorked(res, tojson(cmd));
+checkUUIDs();
})();