summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-03-24 10:45:48 +0000
committerJan Lehnardt <jan@apache.org>2009-03-24 10:45:48 +0000
commitaaf043f9f290c6553e0f9734bf8916a0b4ce7e80 (patch)
treee1ae3d277e6b13a325782bf4c0acc6563bcf1bcd /share/www
parentb7ac236273cd8fe92dfa3cd6cf4efc3d05f8c3b5 (diff)
force full doc reload because ETags don't honour compaction
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@757711 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/rev_stemming.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/www/script/test/rev_stemming.js b/share/www/script/test/rev_stemming.js
index f629c299..3832b520 100644
--- a/share/www/script/test/rev_stemming.js
+++ b/share/www/script/test/rev_stemming.js
@@ -88,6 +88,12 @@ couchTests.rev_stemming = function(debug) {
// compaction isn't instantaneous, loop until done
while (db.info().compact_running) {};
- T(db.open("bar", {revs:true})._revisions.ids.length == newLimit);
-
+ // force reload because ETags don't honour compaction
+ var req = db.request("GET", "/test_suite_db_a/bar?revs=true", {
+ headers:{"if-none-match":"pommes"}
+ });
+
+ var finalDoc = JSON.parse(req.responseText);
+ TEquals(newLimit, finalDoc._revisions.ids.length,
+ "should return a truncated revision list");
};