summaryrefslogtreecommitdiff
path: root/jstests/core/write_result.js
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-03-17 12:13:25 -0400
committerScott Hernandez <scotthernandez@gmail.com>2014-03-18 17:18:12 -0400
commite200a2274f34ba016a123cc4bc943dfe22426e93 (patch)
treec5c90cdbf313f963e809f835c2af02c547ac2b17 /jstests/core/write_result.js
parent8d170f91b67d6e31677668c8c1e9406de8608fb4 (diff)
downloadmongo-e200a2274f34ba016a123cc4bc943dfe22426e93.tar.gz
SERVER-13210: include nModified for all mongod write commands
Diffstat (limited to 'jstests/core/write_result.js')
-rw-r--r--jstests/core/write_result.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/write_result.js b/jstests/core/write_result.js
index c008c5ae404..1a2161873b2 100644
--- a/jstests/core/write_result.js
+++ b/jstests/core/write_result.js
@@ -111,7 +111,7 @@ printjson( result = coll.update({ foo : "bar" }, { $invalid : "expr" }) );
assert.eq(result.nUpserted, 0);
assert.eq(result.nMatched, 0);
if (coll.getMongo().writeMode() == "commands")
- assert.eq(undefined, result.nModified, result);
+ assert.eq(0, result.nModified, result);
assert(result.getWriteError());
assert(result.getWriteError().errmsg);
assert(!result.getUpsertedId());
@@ -131,7 +131,7 @@ printjson( result = coll.update({},
assert.eq(result.nUpserted, 0);
assert.eq(result.nMatched, 0);
if (coll.getMongo().writeMode() == "commands")
- assert.eq(undefined, result.nModified, result);
+ assert.eq(0, result.nModified, result);
assert(result.getWriteError());
assert(result.getWriteError().errmsg);
assert(!result.getUpsertedId());