So the ES_TEST_SLEEP_DURATION thing was there to alleviate the same problem. We can nix that in favor of the wait thing.