This is an automated email from the ASF dual-hosted git repository. wohali pushed a commit to branch 2.1.x in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit b1e0be59699ad330873fea208de986b1619d75c3 Author: Tony Sun <[email protected]> AuthorDate: Sat Oct 28 09:15:22 2017 -0700 add delay for bulk_delete and create --- src/mango/test/mango.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py index 4ae015c..cbf2b11 100644 --- a/src/mango/test/mango.py +++ b/src/mango/test/mango.py @@ -126,6 +126,7 @@ class Database(object): body["index"]["partial_filter_selector"] = partial_filter_selector body = json.dumps(body) r = self.sess.post(self.path("_index"), data=body) + delay() r.raise_for_status() assert r.json()["id"] is not None @@ -157,6 +158,7 @@ class Database(object): body["ddoc"] = ddoc body = json.dumps(body) r = self.sess.post(self.path("_index"), data=body) + delay() r.raise_for_status() return r.json()["result"] == "created" @@ -182,6 +184,7 @@ class Database(object): } body = json.dumps(body) r = self.sess.post(self.path("_index/_bulk_delete"), data=body) + delay(n=10) return r.json() def find(self, selector, limit=25, skip=0, sort=None, fields=None, -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
