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 2018/07/16 10:49:21 UTC
[couchdb] branch master updated: improve ddoc test reliablilty by
waiting for ddoc deletion
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
The following commit(s) were added to refs/heads/master by this push:
new 8c2b86a improve ddoc test reliablilty by waiting for ddoc deletion
8c2b86a is described below
commit 8c2b86a65928724d137477555033e5671f0d2096
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Mon Jul 16 12:01:54 2018 +0200
improve ddoc test reliablilty by waiting for ddoc deletion
---
test/javascript/tests/design_docs.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/test/javascript/tests/design_docs.js b/test/javascript/tests/design_docs.js
index 6e12001..ed1e72f 100644
--- a/test/javascript/tests/design_docs.js
+++ b/test/javascript/tests/design_docs.js
@@ -373,7 +373,13 @@ couchTests.design_docs = function(debug) {
}
T(db.deleteDoc(designDoc).ok);
- T(db.open(designDoc._id) == null);
+ waitForSuccess(function() {
+ var ddoc = db.open(designDoc._id)
+ if (ddoc != null) {
+ throw({});
+ }
+ return true;
+ }, 'db.open(designDoc._id)');
T(db.view("test/no_docs") == null);
T(db.ensureFullCommit().ok);