summaryrefslogtreecommitdiff
path: root/jstests/sharding/current_op_no_shards.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/current_op_no_shards.js')
-rw-r--r--jstests/sharding/current_op_no_shards.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/jstests/sharding/current_op_no_shards.js b/jstests/sharding/current_op_no_shards.js
index 926b032e229..6d6dd3bdfcb 100644
--- a/jstests/sharding/current_op_no_shards.js
+++ b/jstests/sharding/current_op_no_shards.js
@@ -3,16 +3,15 @@
* set, and does not cause the mongoS floating point failure described in SERVER-30084.
*/
(function() {
- const st = new ShardingTest({shards: 0, config: 1});
+const st = new ShardingTest({shards: 0, config: 1});
- const adminDB = st.s.getDB("admin");
+const adminDB = st.s.getDB("admin");
- assert.commandWorked(
- adminDB.runCommand({aggregate: 1, pipeline: [{$currentOp: {}}], cursor: {}}));
- assert.commandWorked(adminDB.currentOp());
+assert.commandWorked(adminDB.runCommand({aggregate: 1, pipeline: [{$currentOp: {}}], cursor: {}}));
+assert.commandWorked(adminDB.currentOp());
- assert.eq(adminDB.aggregate([{$currentOp: {}}]).itcount(), 0);
- assert.eq(adminDB.currentOp().inprog.length, 0);
+assert.eq(adminDB.aggregate([{$currentOp: {}}]).itcount(), 0);
+assert.eq(adminDB.currentOp().inprog.length, 0);
- st.stop();
+st.stop();
})(); \ No newline at end of file