A wait(test) call was repeating `test()` infinitely because the test had no way to stop