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 2015/12/12 17:01:52 UTC

[31/35] couchdb commit: updated refs/heads/2876-js-tests-merged to 6d9b2eb

fix view_errors.js test, skip temp views


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f67101a1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f67101a1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f67101a1

Branch: refs/heads/2876-js-tests-merged
Commit: f67101a1a00fc88ea8a98775c3221cee6b055f6a
Parents: d4850e2
Author: Jan Lehnardt <ja...@apache.org>
Authored: Sat Dec 12 13:28:40 2015 +0100
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Sat Dec 12 15:25:11 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/view_errors.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f67101a1/test/javascript/tests/view_errors.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/view_errors.js b/test/javascript/tests/view_errors.js
index 7fe46a0..b53a3c7 100644
--- a/test/javascript/tests/view_errors.js
+++ b/test/javascript/tests/view_errors.js
@@ -16,11 +16,11 @@ couchTests.view_errors = function(debug) {
   db.createDb();
   if (debug) debugger;
 
-  run_on_modified_server(
-    [{section: "couchdb",
-      key: "os_process_timeout",
-      value: "500"}],
-    function() {
+  // run_on_modified_server(
+  //   [{section: "couchdb",
+  //     key: "os_process_timeout",
+  //     value: "500"}],
+  //   function() {
       var doc = {integer: 1, string: "1", array: [1, 2, 3]};
       T(db.save(doc).ok);
 
@@ -48,7 +48,7 @@ couchTests.view_errors = function(debug) {
       T(results.rows[0].key[1] == null);
       
       // querying a view with invalid params should give a resonable error message
-      var xhr = CouchDB.request("POST", "/" + db_name + "/_temp_view?startkey=foo", {
+      var xhr = CouchDB.request("POST", "/" + db_name + "/_all_docs?startkey=foo", {
         headers: {"Content-Type": "application/json"},
         body: JSON.stringify({language: "javascript",
           map : "function(doc){emit(doc.integer)}"
@@ -57,7 +57,7 @@ couchTests.view_errors = function(debug) {
       T(JSON.parse(xhr.responseText).error == "bad_request");
 
       // content type must be json
-      var xhr = CouchDB.request("POST", "/" + db_name + "/_temp_view", {
+      var xhr = CouchDB.request("POST", "/" + db_name + "/_all_docs", {
         headers: {"Content-Type": "application/x-www-form-urlencoded"},
         body: JSON.stringify({language: "javascript",
           map : "function(doc){}"
@@ -185,7 +185,7 @@ couchTests.view_errors = function(debug) {
           T(e.error == "query_parse_error");
           T(e.reason.match(/no rows can match/i));
       }
-    });
+    // });
 
   // cleanup
   db.deleteDb();