Author: jan
Date: Tue Mar 24 10:45:48 2009
New Revision: 757711

URL: http://svn.apache.org/viewvc?rev=757711&view=rev
Log:
force full doc reload because ETags don't honour compaction

Modified:
    couchdb/trunk/share/www/script/test/rev_stemming.js

Modified: couchdb/trunk/share/www/script/test/rev_stemming.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/rev_stemming.js?rev=757711&r1=757710&r2=757711&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/rev_stemming.js (original)
+++ couchdb/trunk/share/www/script/test/rev_stemming.js Tue Mar 24 10:45:48 2009
@@ -88,6 +88,12 @@
   // 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");
 };


Reply via email to