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:02:12 UTC
[couchdb] branch test/ddocs-relibaility created (now 6351f30)
This is an automated email from the ASF dual-hosted git repository.
jan pushed a change to branch test/ddocs-relibaility
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 6351f30 improve ddoc test reliablilty by waiting for ddoc deletion
This branch includes the following new commits:
new 6351f30 improve ddoc test reliablilty by waiting for ddoc deletion
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: improve ddoc test reliablilty by waiting for ddoc
deletion
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch test/ddocs-relibaility
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 6351f3095da01793a70a969af7d3d61c3273a519
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);