summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Sun <tony.sun427@gmail.com>2017-10-28 09:15:22 -0700
committerTony Sun <tony.sun427@gmail.com>2017-10-28 09:15:22 -0700
commit877c886d6b4121674eff646b03d5ce33505e25d1 (patch)
treede4be63c8ec130f3b4f9c1edf6f9b1f6cf72b79d
parentff1da73a60b9f9a0febe42ff00c0f641702cf18b (diff)
downloadcouchdb-877c886d6b4121674eff646b03d5ce33505e25d1.tar.gz
add delay for bulk_delete and create
-rw-r--r--src/mango/test/mango.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index 4ae015cb5..cbf2b1162 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,