Does it make sense to put a short `time.sleep` here? How long does this test typically take to run? Up to 30 seconds seems like a long time to busy loop.