summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-12-10 01:13:17 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-12-10 01:13:17 +0000
commit5a9321814a727e8c010bf83f05572a341d55f26a (patch)
tree91b6233a3d81f9b29a34d9653fffbde284cdfa4b /share/www/script
parent6bacde0d941d209f41ad3ca8921e3a596a056c06 (diff)
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
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/couch_tests.js9
1 files changed, 8 insertions, 1 deletions
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);