Look for the expected message several times, with short sleeps in between. That way we will not sleep more than necessary, yet will not immediately give up either.
Look for the expected message several times, with short sleeps in between. That way we will not sleep more than necessary, yet will not immediately give up either.