You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/03/17 23:04:56 UTC
[couchdb] branch master updated: Fix 2 failing JS tests
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 207a05e Fix 2 failing JS tests
207a05e is described below
commit 207a05efccf5e26850bbe853af5cd8cb5987857c
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Fri Mar 17 19:03:48 2017 -0400
Fix 2 failing JS tests
---
test/javascript/tests/basics.js | 4 ++--
test/javascript/tests/uuids.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/javascript/tests/basics.js b/test/javascript/tests/basics.js
index c23e417..a36b303 100644
--- a/test/javascript/tests/basics.js
+++ b/test/javascript/tests/basics.js
@@ -228,7 +228,7 @@ couchTests.basics = function(debug) {
var test_doc = function(info) {
var data = JSON.stringify(info[1]);
xhr = CouchDB.request("PUT", "/" + db_name + "/" + info[0], {body: data});
- T(xhr.status == 500);
+ T(xhr.status == 400);
result = JSON.parse(xhr.responseText);
T(result.error == "doc_validation");
@@ -236,7 +236,7 @@ couchTests.basics = function(debug) {
headers: {"Content-Type": "application/json"},
body: data
});
- T(xhr.status == 500);
+ T(xhr.status == 400);
result = JSON.parse(xhr.responseText);
T(result.error == "doc_validation");
};
diff --git a/test/javascript/tests/uuids.js b/test/javascript/tests/uuids.js
index b3ff856..d53a80c 100644
--- a/test/javascript/tests/uuids.js
+++ b/test/javascript/tests/uuids.js
@@ -79,7 +79,7 @@ couchTests.uuids = function(debug) {
// test max_uuid_count
var xhr = CouchDB.request("GET", "/_uuids?count=1001");
- TEquals(403, xhr.status, "should error when count > max_count");
+ TEquals(400, xhr.status, "should error when count > max_count");
run_on_modified_server([{
"section": "uuids",
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].