You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2009/09/01 15:12:05 UTC
svn commit: r810017 -
/couchdb/branches/0.10.x/share/www/script/test/batch_save.js
Author: jan
Date: Tue Sep 1 13:12:04 2009
New Revision: 810017
URL: http://svn.apache.org/viewvc?rev=810017&view=rev
Log:
merge r810015: don't check for response code text, patch by Robert Newson, closes COUCHDB-482
Modified:
couchdb/branches/0.10.x/share/www/script/test/batch_save.js
Modified: couchdb/branches/0.10.x/share/www/script/test/batch_save.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.10.x/share/www/script/test/batch_save.js?rev=810017&r1=810016&r2=810017&view=diff
==============================================================================
--- couchdb/branches/0.10.x/share/www/script/test/batch_save.js (original)
+++ couchdb/branches/0.10.x/share/www/script/test/batch_save.js Tue Sep 1 13:12:04 2009
@@ -22,9 +22,8 @@
// 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 @@
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();