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 2017/10/29 14:50:32 UTC
[couchdb] 01/06: Update w value for deletion since n=1
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 36cb8a2622f1701b393816f58d300ac4d8a58c81
Author: Tony Sun <to...@gmail.com>
AuthorDate: Thu Oct 26 17:57:57 2017 -0700
Update w value for deletion since n=1
Mango tests are failing due to flaky index deletion issues. We change
the value of w to 1 since n=1.
---
src/mango/test/mango.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index ed4cafb..27949c4 100644
--- a/src/mango/test/mango.py
+++ b/src/mango/test/mango.py
@@ -122,6 +122,7 @@ class Database(object):
body = json.dumps(body)
r = self.sess.post(self.path("_index"), data=body)
r.raise_for_status()
+
assert r.json()["id"] is not None
assert r.json()["name"] is not None
return r.json()["result"] == "created"
@@ -165,13 +166,13 @@ class Database(object):
def delete_index(self, ddocid, name, idx_type="json"):
path = ["_index", ddocid, idx_type, name]
- r = self.sess.delete(self.path(path), params={"w":"3"})
+ r = self.sess.delete(self.path(path), params={"w": 1})
r.raise_for_status()
def bulk_delete(self, docs):
body = {
"docids" : docs,
- "w": 3
+ "w": 1
}
body = json.dumps(body)
r = self.sess.post(self.path("_index/_bulk_delete"), data=body)
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.