Printing in every iteration of assert.soon() is an anti-pattern that can cause slow or I/O bound test machines to fail to reach the goal state before the assert.soon() timeout expires. This patch adjusts sharding/repl_monitor_refresh.js to only print when assert.soon() fails.
- is related to
-
SERVER-24772 Remove print statements from assert.soon() calls in sharding/mongos_no_replica_set_refresh.js
- Closed