This is critical as we often had problems with flakey tests in the past due to timing issues. Please avoid this kind of "timing" as the time will depend on the load of the CI infrastructure for example.  TBH I have no good idea on how replace this, but the past experience with failing CI tests for unrelated PRs due to timing scares me when seeing this. :-)