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:08:41 UTC
svn commit: r810015 - /couchdb/trunk/share/www/script/test/batch_save.js
Author: jan
Date: Tue Sep 1 13:08:40 2009
New Revision: 810015
URL: http://svn.apache.org/viewvc?rev=810015&view=rev
Log:
don't check for response code text, patch by Robert Newson, closes COUCHDB-482
Modified:
couchdb/trunk/share/www/script/test/batch_save.js
Modified: couchdb/trunk/share/www/script/test/batch_save.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/batch_save.js?rev=810015&r1=810014&r2=810015&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/batch_save.js (original)
+++ couchdb/trunk/share/www/script/test/batch_save.js Tue Sep 1 13:08:40 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();