summaryrefslogtreecommitdiff
path: root/jstests/core/currentop_predicate.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/currentop_predicate.js')
-rw-r--r--jstests/core/currentop_predicate.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/jstests/core/currentop_predicate.js b/jstests/core/currentop_predicate.js
index 98df3c9756e..73b8a006588 100644
--- a/jstests/core/currentop_predicate.js
+++ b/jstests/core/currentop_predicate.js
@@ -1,22 +1,20 @@
// Tests the use of a match predicate with the currentOp command.
(function() {
// Test a $where predicate that matches the currentOp operation we are running.
- var res = db.adminCommand("currentOp",
- {
- $where: function() {
- return true;
- }
- });
+ var res = db.adminCommand("currentOp", {
+ $where: function() {
+ return true;
+ }
+ });
assert.commandWorked(res);
assert.gt(res.inprog.length, 0, tojson(res));
// Test a $where predicate that matches no operations.
- res = db.adminCommand("currentOp",
- {
- $where: function() {
- return false;
- }
- });
+ res = db.adminCommand("currentOp", {
+ $where: function() {
+ return false;
+ }
+ });
assert.commandWorked(res);
assert.eq(res.inprog.length, 0, tojson(res));
})();