summaryrefslogtreecommitdiff
path: root/share/www/script/test/update_documents.js
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-08-16 17:32:34 +0000
committerJan Lehnardt <jan@apache.org>2009-08-16 17:32:34 +0000
commit8385f5dc3167578bd24806d21a5f0f1f6ec3250b (patch)
tree18d43a4f32f84ec9d1fb810a08cf377bf66401c2 /share/www/script/test/update_documents.js
parentfa7efcbf4108c560f273fbd6f42fc4c18168eb61 (diff)
make tests fast again, use X-Couch-Full-Commit:false for all db operations
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804727 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/update_documents.js')
-rw-r--r--share/www/script/test/update_documents.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/www/script/test/update_documents.js b/share/www/script/test/update_documents.js
index 92e9ae91..35788561 100644
--- a/share/www/script/test/update_documents.js
+++ b/share/www/script/test/update_documents.js
@@ -12,7 +12,7 @@
couchTests.update_documents = function(debug) {
- var db = new CouchDB("test_suite_db");
+ var db = new CouchDB("test_suite_db", {"X-Couch-Full-Commit":"false"});
db.deleteDb();
db.createDb();
if (debug) debugger;
@@ -114,7 +114,7 @@ couchTests.update_documents = function(debug) {
// bump counter
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/bump-counter/"+docid, {
- headers : {"X-Couch-Full-Commit":"true"}
+ headers : {"X-Couch-Full-Commit":"false"}
});
T(xhr.status == 201);
T(xhr.responseText == "<h1>bumped it!</h1>");
@@ -123,7 +123,7 @@ couchTests.update_documents = function(debug) {
// _update honors full commit if you need it to
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/bump-counter/"+docid, {
- headers : {"X-Couch-Full-Commit":"true"}
+ headers : {"X-Couch-Full-Commit":"false"}
});
doc = db.open(docid);
@@ -131,7 +131,7 @@ couchTests.update_documents = function(debug) {
// parse xml
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/xml/"+docid, {
- headers : {"X-Couch-Full-Commit":"true"},
+ headers : {"X-Couch-Full-Commit":"false"},
"body" : '<xml><foo>bar</foo></xml>'
});
T(xhr.status == 201);