couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [5/9] couchdb commit: updated refs/heads/master to 01edf89
Date Mon, 25 Apr 2016 16:56:10 GMT
Make reader_acl more stable


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/334eeee0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/334eeee0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/334eeee0

Branch: refs/heads/master
Commit: 334eeee08d156c5f6c416161d9d13a60bc5c20c4
Parents: a87ac58
Author: sebastianro <sebastianro@apache.org>
Authored: Thu Apr 21 18:57:56 2016 +0200
Committer: sebastianro <sebastianro@apache.org>
Committed: Sat Apr 23 19:23:43 2016 +0200

----------------------------------------------------------------------
 test/javascript/tests/reader_acl.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/334eeee0/test/javascript/tests/reader_acl.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/reader_acl.js b/test/javascript/tests/reader_acl.js
index 876446e..df390ca 100644
--- a/test/javascript/tests/reader_acl.js
+++ b/test/javascript/tests/reader_acl.js
@@ -87,7 +87,10 @@ couchTests.reader_acl = function(debug) {
       T(CouchDB.login("jchris@apache.org", "funnybone").ok);
 
       // db admin can read
-      T(secretDb.open("baz").foo == "bar");
+      // retry as propagation could take time
+      retry_part(function(){
+        T(secretDb.open("baz").foo == "bar");
+      });
 
       // and run temp views - they don't exist any more, so leave out 
       /*TEquals(secretDb.query(function(doc) {
@@ -160,7 +163,10 @@ couchTests.reader_acl = function(debug) {
 
       T(CouchDB.login("jchris@apache.org", "funnybone").ok);
       T(CouchDB.session().userCtx.roles.indexOf("_admin") == -1);
-      T(secretDb.open("baz").foo == "bar");
+      // retry as propagation could take time
+      retry_part(function(){
+        T(secretDb.open("baz").foo == "bar");
+      });
 
       // can't set non string reader names or roles
       try {


Mime
View raw message