Details
Description
Lots of jstests use ShardingTest.{start/stop}Balancer to change the balancer state, without passing a timeout. sh.stopBalancer waits for a balancer round to run before terminating. The default timeout for sh.stopBalancer is 30 seconds, and the balancer only runs once every 30 seconds, so this is intrinsically a racy check.