More reliable test_max_wait.