diff options
author | Maria van Keulen <maria@mongodb.com> | 2019-07-11 14:48:28 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2019-07-17 16:58:37 -0400 |
commit | 4a8d767411e17027204d5c4ae200fa525f13719d (patch) | |
tree | 338dea77564492545f98b449882a7ec3c51eb652 /jstests/noPassthrough/flow_control_logging.js | |
parent | 37874e227afea1d7717ac4809b2a0bcfe640a255 (diff) | |
download | mongo-4a8d767411e17027204d5c4ae200fa525f13719d.tar.gz |
SERVER-42091 Look for at least 2 log messages in flow_control_logging.js
Diffstat (limited to 'jstests/noPassthrough/flow_control_logging.js')
-rw-r--r-- | jstests/noPassthrough/flow_control_logging.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/noPassthrough/flow_control_logging.js b/jstests/noPassthrough/flow_control_logging.js index e15186654d8..0d4744b4559 100644 --- a/jstests/noPassthrough/flow_control_logging.js +++ b/jstests/noPassthrough/flow_control_logging.js @@ -42,10 +42,11 @@ // oplog entry every other second. Once the primary notices the sustainer rate is not moving, it // should start logging a warning once per second. This check waits for two log messages to make // sure the appropriate state variables are being reset. - checkLog.containsWithCount(replSet.getPrimary(), - "Flow control is engaged and the sustainer point is not moving.", - 2, - timeoutMilliseconds); + checkLog.containsWithAtLeastCount( + replSet.getPrimary(), + "Flow control is engaged and the sustainer point is not moving.", + 2, + timeoutMilliseconds); // Restart replication so the replica set will shut down. for (let sec of replSet.getSecondaries()) { |