Author: jchris
Date: Tue Dec  1 21:45:27 2009
New Revision: 885954

URL: http://svn.apache.org/viewvc?rev=885954&view=rev
Log:
change some timings to make the changes test more robust

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

Modified: couchdb/trunk/share/www/script/test/changes.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/changes.js?rev=885954&r1=885953&r2=885954&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/changes.js (original)
+++ couchdb/trunk/share/www/script/test/changes.js Tue Dec  1 21:45:27 2009
@@ -222,9 +222,10 @@
 
     // filter with continuous
     xhr = CouchDB.newXhr();
-    xhr.open("GET", 
"/test_suite_db/_changes?feed=continuous&filter=changes_filter/bop&timeout=100",
 true);
+    xhr.open("GET", 
"/test_suite_db/_changes?feed=continuous&filter=changes_filter/bop&timeout=200",
 true);
     xhr.send("");
     db.save({"_id":"rusty", "bop" : "plankton"});
+    T(db.ensureFullCommit().ok);
     sleep(200);
     var lines = xhr.responseText.split("\n");
     T(JSON.parse(lines[1]).id == id);


Reply via email to