You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2019/11/14 19:53:22 UTC
[couchdb] branch jenkins-add-mango-test-reporting updated: Set
autoupdate:false to avoid update=False flake
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch jenkins-add-mango-test-reporting
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/jenkins-add-mango-test-reporting by this push:
new 7b08176 Set autoupdate:false to avoid update=False flake
7b08176 is described below
commit 7b081760bfbe4bb5c029d08fee46c43d3872e1b8
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Thu Nov 14 14:51:43 2019 -0500
Set autoupdate:false to avoid update=False flake
The auto-indexer is sometimes sneaking in and causing test failures by
building the index ahead of the update=false query. This should block
that behavior.
---
src/mango/test/13-stable-update-test.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mango/test/13-stable-update-test.py b/src/mango/test/13-stable-update-test.py
index 348ac5e..ce303bf 100644
--- a/src/mango/test/13-stable-update-test.py
+++ b/src/mango/test/13-stable-update-test.py
@@ -36,7 +36,14 @@ DOCS1 = [
class SupportStableAndUpdate(mango.DbPerClass):
def setUp(self):
self.db.recreate()
- self.db.create_index(["name"])
+ # Hack to prevent auto-indexer from foiling update=False test
+ # https://github.com/apache/couchdb/issues/2313
+ self.db.save_doc({
+ "_id": "_design/foo",
+ "language": "query",
+ "autoupdate": False
+ })
+ self.db.create_index(["name"], ddoc="foo")
self.db.save_docs(copy.deepcopy(DOCS1))
def test_update_updates_view_when_specified(self):