From 241f3fa22ff3977d4a9c5186984bac98d94b0b62 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 1 Sep 2009 13:08:40 +0000 Subject: 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 --- share/www/script/test/batch_save.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'share/www/script/test/batch_save.js') 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(); -- cgit v1.2.3