couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonysu...@apache.org
Subject [couchdb] branch mango-test-failures updated: add delay for bulk_delete and create
Date Sat, 28 Oct 2017 16:13:47 GMT
This is an automated email from the ASF dual-hosted git repository.

tonysun83 pushed a commit to branch mango-test-failures
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/mango-test-failures by this push:
     new 877c886  add delay for bulk_delete and create
877c886 is described below

commit 877c886d6b4121674eff646b03d5ce33505e25d1
Author: Tony Sun <tony.sun427@gmail.com>
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
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message