From 5a9321814a727e8c010bf83f05572a341d55f26a Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 10 Dec 2008 01:13:17 +0000 Subject: view group state gen_server. thanks damien and davisp. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@724946 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'share/www/script/couch_tests.js') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 64b12f6b..ba88281f 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -1905,6 +1905,7 @@ var tests = { } T(db.view("test/single_doc").total_rows == 1); + var info = db.info(); var doc1 = db.open("1"); var doc2 = db.open("2"); @@ -1913,7 +1914,13 @@ var tests = { body: JSON.stringify({"1":[doc1._rev], "2":[doc2._rev]}), }); T(xhr.status == 200); - + + 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); + var result = JSON.parse(xhr.responseText); T(result.purged["1"][0] == doc1._rev); T(result.purged["2"][0] == doc2._rev); -- cgit v1.2.3