diff options
author | Judah Schvimer <judah@mongodb.com> | 2019-09-10 16:47:10 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2019-09-11 16:08:08 -0400 |
commit | f8079ef649dd4fa2b87d7fdd7729e159b6c77ee6 (patch) | |
tree | a6ae6a8a9dcf100e9278578a196dc1c1eb956f56 | |
parent | baa2e4333f6d94df4cf0714d1208f63655ce523a (diff) | |
download | mongo-f8079ef649dd4fa2b87d7fdd7729e159b6c77ee6.tar.gz |
SERVER-43245 Wait for node to be secondary on restart in seed_secondary_without_sessions_table.js
-rw-r--r-- | jstests/replsets/seed_secondary_without_sessions_table.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/seed_secondary_without_sessions_table.js b/jstests/replsets/seed_secondary_without_sessions_table.js index c893f51b423..8bf16415907 100644 --- a/jstests/replsets/seed_secondary_without_sessions_table.js +++ b/jstests/replsets/seed_secondary_without_sessions_table.js @@ -149,6 +149,7 @@ seed = rst.restart(seed, {noReplSet: false}); reconnect(seed); seed.setSlaveOk(); + rst.waitForState(seed, ReplSetTest.State.SECONDARY); assertCollSize(sessionsColl(primary), 2); assertCollSize(txnColl(primary), 2); |