wait as long as we need to in the tests