Make a flaky test less flaky.