From aaf043f9f290c6553e0f9734bf8916a0b4ce7e80 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 24 Mar 2009 10:45:48 +0000 Subject: 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 --- share/www/script/test/rev_stemming.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'share') 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"); }; -- cgit v1.2.3