couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r810017 - /couchdb/branches/0.10.x/share/www/script/test/batch_save.js
Date Tue, 01 Sep 2009 13:12:05 GMT
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();



Mime
View raw message