diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2018-03-29 13:31:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 13:31:32 -0500 |
commit | 624817c85621e2deb9387d817707879bc785a98f (patch) | |
tree | c4e2612680a46abb582361067b0e284e2da46ed1 | |
parent | daab8c16b7362e380c00df74890fae8865e3dbc9 (diff) | |
parent | 6ffe0421ac524138a6b48fd010f2540631b83d16 (diff) | |
download | couchdb-fix-bt-engine-compaction-resumption.tar.gz |
Merge branch 'master' into fix-bt-engine-compaction-resumptionfix-bt-engine-compaction-resumption
-rw-r--r-- | test/javascript/tests/users_db_security.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/javascript/tests/users_db_security.js b/test/javascript/tests/users_db_security.js index 4cc154edd..c55c76434 100644 --- a/test/javascript/tests/users_db_security.js +++ b/test/javascript/tests/users_db_security.js @@ -32,7 +32,13 @@ couchTests.users_db_security = function(debug) { // the actual tests var username1 = username.replace(/[0-9]$/, ""); var password = pws[username]; - T(CouchDB.login(username1, pws[username]).ok); + waitForSuccess(function() { + var req = CouchDB.login(username1, pws[username]); + if (req.ok) { + return true + } + throw({}); + }, 'loginUser'); }; var open_as = function(db, docId, username) { @@ -107,7 +113,6 @@ couchTests.users_db_security = function(debug) { // jan's gonna be admin as he's the first user TEquals(true, usersDb.save(userDoc).ok, "should save document"); - wait(5000); userDoc = open_as(usersDb, "org.couchdb.user:jchris", "jchris"); TEquals(undefined, userDoc.password, "password field should be null 1"); TEquals(scheme, userDoc.password_scheme, "password_scheme should be " + scheme); |