From cc3cd646a64e2cd6e4c318532ba469b152defb41 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Sat, 21 Mar 2009 12:27:40 +0000 Subject: 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 --- share/www/script/test/conflicts.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share/www/script/test/conflicts.js') 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. -- cgit v1.2.3