diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-09-24 13:28:50 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-09-27 10:39:18 -0400 |
commit | f552b4010d8afabe767ec8291816b73d6dce4319 (patch) | |
tree | a10ea6afdbc522fb0fd22fbdab58daec0f68a6c8 /jstests | |
parent | 5674fa1f3087f65ea326b33f5b81647d4dcfb8d6 (diff) | |
download | mongo-f552b4010d8afabe767ec8291816b73d6dce4319.tar.gz |
SERVER-37146 Retry cluster auth while waiting for replication
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/rollback_auth.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/replsets/rollback_auth.js b/jstests/replsets/rollback_auth.js index 7d78484fdf1..d7703ea3824 100644 --- a/jstests/replsets/rollback_auth.js +++ b/jstests/replsets/rollback_auth.js @@ -200,10 +200,11 @@ // bring B back in contact with A // as A is primary, B will roll back and then catch up replTest.restart(1); - authutil.asCluster(replTest.nodes, 'jstests/libs/key1', function() { - replTest.awaitReplication(); - }); - assert.soon(function() { + assert.soonNoExcept(function() { + authutil.asCluster(replTest.nodes, 'jstests/libs/key1', function() { + replTest.awaitReplication(); + }); + return b.auth('spencer', 'pwd'); }); // Now both A and B should agree |