summaryrefslogtreecommitdiff
path: root/jstests/sharding/move_primary_fails_without_database_version.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/sharding/move_primary_fails_without_database_version.js
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/sharding/move_primary_fails_without_database_version.js')
-rw-r--r--jstests/sharding/move_primary_fails_without_database_version.js20
1 files changed, 9 insertions, 11 deletions
diff --git a/jstests/sharding/move_primary_fails_without_database_version.js b/jstests/sharding/move_primary_fails_without_database_version.js
index cf03d5e1cfe..27b447efdc4 100644
--- a/jstests/sharding/move_primary_fails_without_database_version.js
+++ b/jstests/sharding/move_primary_fails_without_database_version.js
@@ -1,19 +1,17 @@
// Tests that a movePrimary will fail if the database doesn't have a version in config.databases
(function() {
- "use strict";
+"use strict";
- const dbName = "test";
+const dbName = "test";
- const st = new ShardingTest({shards: 2});
+const st = new ShardingTest({shards: 2});
- assert.commandWorked(st.s.getDB("config").getCollection("databases").insert({
- _id: dbName,
- partitioned: false,
- primary: st.shard0.shardName
- }));
+assert.commandWorked(st.s.getDB("config")
+ .getCollection("databases")
+ .insert({_id: dbName, partitioned: false, primary: st.shard0.shardName}));
- assert.commandFailedWithCode(st.s.adminCommand({movePrimary: dbName, to: st.shard1.shardName}),
- ErrorCodes.InternalError);
+assert.commandFailedWithCode(st.s.adminCommand({movePrimary: dbName, to: st.shard1.shardName}),
+ ErrorCodes.InternalError);
- st.stop();
+st.stop();
})(); \ No newline at end of file