summaryrefslogtreecommitdiff
path: root/jstests/sharding/update1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/update1.js')
-rw-r--r--jstests/sharding/update1.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/jstests/sharding/update1.js b/jstests/sharding/update1.js
index 73fe8a8bbdc..96a1df2d861 100644
--- a/jstests/sharding/update1.js
+++ b/jstests/sharding/update1.js
@@ -45,8 +45,6 @@ for(i=0; i < 2; i++){
coll.update({_id:1, key:1}, {$set: {key:2}});
err = db.getLastErrorObj();
assert.eq(coll.findOne({_id:1}).key, 1, 'key unchanged');
- assert.eq(err.code, 13123, 'key error code 1');
- assert.eq(err.code, 13123, 'key error code 2');
coll.update({_id:1, key:1}, {$set: {foo:2}});
assert.isnull(db.getLastError(), 'getLastError reset');