summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Sun <tony.sun427@gmail.com>2017-10-26 17:57:57 -0700
committerTony Sun <tony.sun427@gmail.com>2017-10-26 17:57:57 -0700
commit455c686b58d35885572c9359b68f87ef901b5e82 (patch)
tree671fa166bea9e5b3cd36eba06cc23df8a972608b
parenta1ee18da71d434424eb361510745370514c8fd82 (diff)
downloadcouchdb-455c686b58d35885572c9359b68f87ef901b5e82.tar.gz
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.
-rw-r--r--src/mango/test/mango.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index ed4cafbe5..27949c48d 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)