summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();