diff options
author | Jason Rassi <rassi@10gen.com> | 2015-10-23 18:18:28 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-10-26 11:58:50 -0400 |
commit | 6c5fb5a67d83d2d35214b8beb276b20f55ab2510 (patch) | |
tree | d3f41b332af459c905ad1a2887c0b73be343caab /jstests | |
parent | aa1e5014f13a48a9e739416681fdb94e36b1158a (diff) | |
download | mongo-6c5fb5a67d83d2d35214b8beb276b20f55ab2510.tar.gz |
SERVER-21111 bench_test_crud_commands.js log addl. failure diagnostics
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/bench_test_crud_commands.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/bench_test_crud_commands.js b/jstests/core/bench_test_crud_commands.js index 43d86d555fe..6b6cafc00cc 100644 --- a/jstests/core/bench_test_crud_commands.js +++ b/jstests/core/bench_test_crud_commands.js @@ -26,9 +26,9 @@ doc: docs, writeCmd: writeCmd}]); - assert.gt(res.insert, 0); assert.gt(coll.count(), 0); assert.eq(coll.findOne({}, {_id:0}), docs[0]); + assert.gt(res.insert, 0, tojson(res)); } function testFind(readCmd) { @@ -42,7 +42,7 @@ query: {}, batchSize: NumberInt(10), readCmd: readCmd}]); - assert.gt(res.query, 0); + assert.gt(res.query, 0, tojson(res)); } function testFindOne(readCmd) { @@ -55,7 +55,7 @@ op: "findOne", query: {}, readCmd: readCmd}]); - assert.gt(res.findOne, 0); + assert.gt(res.findOne, 0, tojson(res)); } testInsert(false); |