summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2017-06-02 18:01:27 -0400
committerJoan Touzet <joant@atypical.net>2017-06-02 18:01:27 -0400
commit85cfc71beb089c7881959c2ac7699b9b35b0f04b (patch)
treec476665bba9114c7b8a1d15fc4a8ccfd26a0963c
parent4a0cd891df8c3039bd5eca4cda19e04d352db3f2 (diff)
downloadcouchdb-85cfc71beb089c7881959c2ac7699b9b35b0f04b.tar.gz
Remove another invalid post-2.0 test case (ddoc_cache related)
This test case is failing for the same reason as the failures in #559, namely a GET on a _show, a PUT to the _show's ddoc to change the _show function, and a subsequent GET on the same _show that returns a result that is seemingly outdated. Late ddoc_cache eviction is still the problem; setting ddoc_cache max_objects to 0 ensures this test always passes. Based on the discussion in #559 I am deleting this test as well, direct on master with approval from @janl and @davisp.
-rw-r--r--test/javascript/tests/design_docs.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/javascript/tests/design_docs.js b/test/javascript/tests/design_docs.js
index ab62f3fe9..84b5a2bf9 100644
--- a/test/javascript/tests/design_docs.js
+++ b/test/javascript/tests/design_docs.js
@@ -207,26 +207,6 @@ couchTests.design_docs = function(debug) {
TEquals(resp.rev, db.save(designDoc).rev);
- // test that editing a show fun on the ddoc results in a change in output
- xhr = CouchDB.request("GET", "/" + db_name + "/_design/test/_show/simple");
- T(xhr.status == 200);
- TEquals(xhr.responseText, "ok");
-
- designDoc.shows.simple = (function() {
- return 'ko';
- }).toString();
- T(db.save(designDoc).ok);
-
- xhr = CouchDB.request("GET", "/" + db_name + "/_design/test/_show/simple");
- T(xhr.status == 200);
- TEquals(xhr.responseText, "ko");
-
- xhr = CouchDB.request(
- "GET", "/" + db_name_a + "/_design/test/_show/simple?cache=buster"
- );
- T(xhr.status == 200);
- TEquals("ok", xhr.responseText, 'query server used wrong ddoc');
-
// test commonjs require
xhr = CouchDB.request("GET", "/" + db_name + "/_design/test/_show/requirey");
T(xhr.status == 200);