diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/bulk_docs.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/www/script/test/bulk_docs.js b/share/www/script/test/bulk_docs.js index 0b406a3e..8e73ded4 100644 --- a/share/www/script/test/bulk_docs.js +++ b/share/www/script/test/bulk_docs.js @@ -88,4 +88,13 @@ couchTests.bulk_docs = function(debug) { T(results[0].id != ""); T(results[0].rev != ""); + + + // Regression test for failure on update/delete + var newdoc = {"_id": "foobar", "body": "baz"}; + T(db.save(newdoc).ok); + update = {"_id": newdoc._id, "_rev": newdoc._rev, "body": "blam"}; + torem = {"_id": newdoc._id, "_rev": newdoc._rev, "_deleted": true}; + results = db.bulkSave([update, torem]); + T(results[1].error == "conflict"); }; |