summaryrefslogtreecommitdiff
path: root/jstests/sharding/failcommand_failpoint_not_parallel.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/failcommand_failpoint_not_parallel.js')
-rw-r--r--jstests/sharding/failcommand_failpoint_not_parallel.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/jstests/sharding/failcommand_failpoint_not_parallel.js b/jstests/sharding/failcommand_failpoint_not_parallel.js
index c759986a11c..18117e0e4b8 100644
--- a/jstests/sharding/failcommand_failpoint_not_parallel.js
+++ b/jstests/sharding/failcommand_failpoint_not_parallel.js
@@ -1,21 +1,21 @@
(function() {
- "use strict";
+"use strict";
- const st = new ShardingTest({shards: 3, mongos: 1});
- const db = st.s.getDB("test_failcommand_noparallel");
+const st = new ShardingTest({shards: 3, mongos: 1});
+const db = st.s.getDB("test_failcommand_noparallel");
- // Test times when closing connection.
- // Sharding tests require failInternalCommands: true, since the mongos appears to mongod to be
- // an internal client.
- assert.commandWorked(st.s.adminCommand({
- configureFailPoint: "failCommand",
- mode: {times: 2},
- data: {closeConnection: true, failCommands: ["find"], failInternalCommands: true}
- }));
- assert.throws(() => db.runCommand({find: "c"}));
- assert.throws(() => db.runCommand({find: "c"}));
- assert.commandWorked(db.runCommand({find: "c"}));
- assert.commandWorked(st.s.adminCommand({configureFailPoint: "failCommand", mode: "off"}));
+// Test times when closing connection.
+// Sharding tests require failInternalCommands: true, since the mongos appears to mongod to be
+// an internal client.
+assert.commandWorked(st.s.adminCommand({
+ configureFailPoint: "failCommand",
+ mode: {times: 2},
+ data: {closeConnection: true, failCommands: ["find"], failInternalCommands: true}
+}));
+assert.throws(() => db.runCommand({find: "c"}));
+assert.throws(() => db.runCommand({find: "c"}));
+assert.commandWorked(db.runCommand({find: "c"}));
+assert.commandWorked(st.s.adminCommand({configureFailPoint: "failCommand", mode: "off"}));
- st.stop();
+st.stop();
}());