diff options
author | Paul Joseph Davis <davisp@apache.org> | 2010-02-22 15:18:46 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2010-02-22 15:18:46 +0000 |
commit | a4af409b04f535c09fca9b3db96caa3d7486c309 (patch) | |
tree | f0bbfb1fe8cc99fa7f456d48db0e2b465cdef953 /share | |
parent | b3f6661126c03eeb3ec478ef4156c2cc5da1d8d0 (diff) |
_purge was incorrectly returning update_seq.
Patched and tested.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/purge.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/www/script/test/purge.js b/share/www/script/test/purge.js index ca68b363..a924c348 100644 --- a/share/www/script/test/purge.js +++ b/share/www/script/test/purge.js @@ -54,13 +54,15 @@ couchTests.purge = function(debug) { }); T(xhr.status == 200); + var result = JSON.parse(xhr.responseText); var newInfo = db.info(); + // purging increments the update sequence T(info.update_seq+1 == newInfo.update_seq); // and it increments the purge_seq T(info.purge_seq+1 == newInfo.purge_seq); + T(result.purge_seq == newInfo.purge_seq); - var result = JSON.parse(xhr.responseText); T(result.purged["1"][0] == doc1._rev); T(result.purged["2"][0] == doc2._rev); @@ -91,6 +93,8 @@ couchTests.purge = function(debug) { }); T(xhr.status == 200); + result = JSON.parse(xhr.responseText); + T(result.purge_seq == db.info().purge_seq); var rows = db.view("test/all_docs_twice").rows; for (var i = 4; i < numDocs; i++) { |