summaryrefslogtreecommitdiff
path: root/jstests/find_and_modify4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/find_and_modify4.js')
-rw-r--r--jstests/find_and_modify4.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/find_and_modify4.js b/jstests/find_and_modify4.js
index ad1fb3696f0..5f343185450 100644
--- a/jstests/find_and_modify4.js
+++ b/jstests/find_and_modify4.js
@@ -35,7 +35,7 @@ assert.eq(helper(false), null);
assert.eq(t.count(), 0);
// upsert:false so nothing there before; something there after
-assert.eq(helper(true), {});
+assert.eq(helper(true), null);
assert.eq(t.count(), 1);
assert.eq(helper(true), {_id: 'asdf', val: 1});
assert.eq(helper(false), {_id: 'asdf', val: 2}); // upsert only matters when obj doesn't exist