diff options
author | David Bradford <david.bradford@mongodb.com> | 2018-02-15 15:23:13 -0500 |
---|---|---|
committer | David Bradford <david.bradford@mongodb.com> | 2018-02-15 15:23:13 -0500 |
commit | caf6f27ec26a5b0d325e2fcbad39d0239f798a43 (patch) | |
tree | efc13713365866c58e0ea0fd99c56448dcc4923c /jstests/core/opcounters_active.js | |
parent | 6bd287f8805027ae88f2d22df0bb1af3b6d6753b (diff) | |
download | mongo-caf6f27ec26a5b0d325e2fcbad39d0239f798a43.tar.gz |
SERVER-33034: Fix tests with bad assertions
Diffstat (limited to 'jstests/core/opcounters_active.js')
-rw-r--r-- | jstests/core/opcounters_active.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/opcounters_active.js b/jstests/core/opcounters_active.js index c184eab3d1d..283415ba8b1 100644 --- a/jstests/core/opcounters_active.js +++ b/jstests/core/opcounters_active.js @@ -19,15 +19,15 @@ // Test that the serverstatus helper works var result = db.serverStatus(); - assert.neq(undefined, result, result); + assert.neq(undefined, result, tojson(result)); // Test that the metrics tree returns - assert.neq(undefined, result.metrics, result); + assert.neq(undefined, result.metrics, tojson(result)); // Test that the metrics.commands tree returns - assert.neq(undefined, result.metrics.commands, result); + assert.neq(undefined, result.metrics.commands, tojson(result)); // Test that the metrics.commands.serverStatus value is non-zero - assert.neq(0, result.metrics.commands.serverStatus.total, result); + assert.neq(0, result.metrics.commands.serverStatus.total, tojson(result)); // Test that the command returns successfully when no metrics tree is present var result = db.serverStatus({"metrics": 0}); - assert.eq(undefined, result.metrics, result); + assert.eq(undefined, result.metrics, tojson(result)); }());
\ No newline at end of file |