summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-09-01 13:08:40 +0000
committerJan Lehnardt <jan@apache.org>2009-09-01 13:08:40 +0000
commit241f3fa22ff3977d4a9c5186984bac98d94b0b62 (patch)
tree915c2e99d424afc9fd8e5930b2428b59dfd12551 /share/www/script
parent24ce2e336a8c1f7d6d35ac9f30afc9bf5e431a8a (diff)
don't check for response code text, patch by Robert Newson, closes COUCHDB-482
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810015 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/batch_save.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/www/script/test/batch_save.js b/share/www/script/test/batch_save.js
index 18994e3a..e321b108 100644
--- a/share/www/script/test/batch_save.js
+++ b/share/www/script/test/batch_save.js
@@ -22,9 +22,8 @@ couchTests.batch_save = function(debug) {
// PUT a doc with ?batch=ok
T(db.save({_id:"0",a:1,b:1}, {batch : "ok"}).ok);
- // test that response is 200 Accepted
+ // test that response is 202 Accepted
T(db.last_req.status == 202);
- T(db.last_req.statusText == "Accepted");
T(db.allDocs().total_rows == 0);
@@ -44,9 +43,8 @@ couchTests.batch_save = function(debug) {
var resp = db.request("POST", db.uri + "?batch=ok", {body: JSON.stringify({a:1})});
T(JSON.parse(resp.responseText).ok);
- // test that response is 200 Accepted
+ // test that response is 202 Accepted
T(resp.status == 202);
- T(resp.statusText == "Accepted");
T(db.allDocs().total_rows == 3);
// restartServer();