From acea28520290e793c1ff9e6ed4117ff543c59a98 Mon Sep 17 00:00:00 2001 From: matt dannenberg Date: Tue, 3 Mar 2015 04:21:32 -0500 Subject: SERVER-17443 use assert.soon rather than assert for log messages in get_replication_info_helper.js --- jstests/replsets/get_replication_info_helper.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'jstests/replsets/get_replication_info_helper.js') 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"); + }); })(); -- cgit v1.2.1