summaryrefslogtreecommitdiff
path: root/jstests/replsets/get_replication_info_helper.js
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2015-03-03 04:21:32 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2015-03-03 05:03:37 -0500
commitacea28520290e793c1ff9e6ed4117ff543c59a98 (patch)
tree5c540071dbac97b0b1bda475cb68bca42f382f56 /jstests/replsets/get_replication_info_helper.js
parent91806c6dd58640187180214c5f44f13421e9aa78 (diff)
downloadmongo-acea28520290e793c1ff9e6ed4117ff543c59a98.tar.gz
SERVER-17443 use assert.soon rather than assert for log messages in get_replication_info_helper.js
Diffstat (limited to 'jstests/replsets/get_replication_info_helper.js')
-rw-r--r--jstests/replsets/get_replication_info_helper.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/replsets/get_replication_info_helper.js b/jstests/replsets/get_replication_info_helper.js
index 570e2c05a08..6cc937a6da8 100644
--- a/jstests/replsets/get_replication_info_helper.js
+++ b/jstests/replsets/get_replication_info_helper.js
@@ -31,7 +31,9 @@
var mongo = startParallelShell("db.getSiblingDB('admin').printSlaveReplicationInfo();",
primary.port);
mongo();
- assert(rawMongoProgramOutput().match("behind the primary"));
+ assert.soon(function() {
+ return rawMongoProgramOutput().match("behind the primary");
+ });
// get to a primaryless state
for (i in replSet.liveNodes.slaves) {
@@ -46,6 +48,8 @@
mongo = startParallelShell("db.getSiblingDB('admin').printSlaveReplicationInfo();",
primary.port);
mongo();
- assert(rawMongoProgramOutput().match("behind the freshest"));
+ assert.soon(function() {
+ return rawMongoProgramOutput().match("behind the freshest");
+ });
})();