summaryrefslogtreecommitdiff
path: root/jstests/core/rename8.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/rename8.js')
-rw-r--r--jstests/core/rename8.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/core/rename8.js b/jstests/core/rename8.js
index 8b955824ea8..af332e30239 100644
--- a/jstests/core/rename8.js
+++ b/jstests/core/rename8.js
@@ -1,6 +1,7 @@
// SERVER-12591: prevent renaming to arbitrary system collections.
-var testdb = db.getSiblingDB("rename8"); // to avoid breaking other tests when we touch system.users
+var testdb =
+ db.getSiblingDB("rename8"); // to avoid breaking other tests when we touch system.users
var coll = testdb.rename8;
var systemNamespaces = testdb.system.namespaces;
var systemFoo = testdb.system.foo;
@@ -17,7 +18,7 @@ assert.commandFailed(systemFoo.renameCollection(coll.getName()));
// same with system.namespaces, even though it does exist
assert.commandFailed(coll.renameCollection(systemNamespaces.getName()));
-assert.commandFailed(coll.renameCollection(systemNamespaces.getName(), /*dropTarget*/true));
+assert.commandFailed(coll.renameCollection(systemNamespaces.getName(), /*dropTarget*/ true));
assert.commandFailed(systemNamespaces.renameCollection(coll.getName()));
// system.users is whitelisted so these should work