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/06/02 22:04:42 UTC
[couchdb] branch master updated: Remove another invalid post-2.0
test case (ddoc_cache related)
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 85cfc71 Remove another invalid post-2.0 test case (ddoc_cache related)
85cfc71 is described below
commit 85cfc71beb089c7881959c2ac7699b9b35b0f04b
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Fri Jun 2 18:01:27 2017 -0400
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.
---
test/javascript/tests/design_docs.js | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/test/javascript/tests/design_docs.js b/test/javascript/tests/design_docs.js
index ab62f3f..84b5a2b 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);
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].