diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 15:37:18 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 15:37:18 -0500 |
commit | 0a71e870ced185119b233e941d99bf363cae92cb (patch) | |
tree | 993b92e848ab8fd6c74fbe4f6e4196f5200ee422 /jstests/updatea.js | |
parent | 6df2dd965ee1ba576522096e67c2e1f773a669e9 (diff) | |
download | mongo-0a71e870ced185119b233e941d99bf363cae92cb.tar.gz |
fix multiple $inc/$push on same embedded object SERVER-333
Diffstat (limited to 'jstests/updatea.js')
-rw-r--r-- | jstests/updatea.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/updatea.js b/jstests/updatea.js index d6ac280c16b..d6495d2186f 100644 --- a/jstests/updatea.js +++ b/jstests/updatea.js @@ -28,7 +28,7 @@ t.save( orig ); t.update( {} , { $inc: { "comments.0.rate_up" : 1 } , $push: { "comments.0.rate_ups" : 99 } } ) orig.comments[0].rate_up++; orig.comments[0].rate_ups.push( 99 ) -//assert.eq( orig , t.findOne() , "B1" ) +assert.eq( orig , t.findOne() , "B1" ) |