diff options
author | Damien F. Katz <damien@apache.org> | 2009-03-21 12:27:40 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-03-21 12:27:40 +0000 |
commit | cc3cd646a64e2cd6e4c318532ba469b152defb41 (patch) | |
tree | 0d6179a51074f107cee37f418f2c0a0f29029722 /share/www/script/test | |
parent | 13c7fee8168769542bba96a5f06e00110d00a81a (diff) |
Fix for COUCHDB-300. Old seq were being removed when a conflict. An old bug, but recent changes made it much more likely to happen.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756925 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/conflicts.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/conflicts.js b/share/www/script/test/conflicts.js index 02e50035..dfd7e8b6 100644 --- a/share/www/script/test/conflicts.js +++ b/share/www/script/test/conflicts.js @@ -41,6 +41,10 @@ couchTests.conflicts = function(debug) { } catch (e) { T(e.error == "conflict"); } + + var bySeq = db.allDocsBySeq(); + + T( bySeq.rows.length == 1) // Now clear out the _rev member and save. This indicates this document is // new, not based on an existing revision. |