0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-34557 Make sure slave_delay_clean_shutdown.js awaits secondary nodes before

reading from oplog after restarting node
This commit is contained in:
William Schultz 2018-05-02 19:51:19 -04:00
parent 880de296d3
commit 978ee4b254

View File

@ -56,6 +56,8 @@ load('jstests/replsets/rslib.js');
assert.lt(Date.timeFunc(() => rst.stop(1)), 60 * 1000);
secondary = rst.restart(1);
rst.awaitSecondaryNodes();
assert.eq(getLatestOp(secondary), lastOp);
sleep(2000); // Prevent the test from passing by chance.
assert.eq(getLatestOp(secondary), lastOp);