(execute_counter, min_call_count, timeout)
| 10 | class TestBackgroundScheduler: |
| 11 | @staticmethod |
| 12 | def _wait_for_calls(execute_counter, min_call_count, timeout): |
| 13 | if min_call_count == 0: |
| 14 | sleep(timeout) |
| 15 | return |
| 16 | |
| 17 | deadline = monotonic() + max(timeout, 0.2) |
| 18 | while len(execute_counter) < min_call_count and monotonic() < deadline: |
| 19 | sleep(0.002) |
| 20 | |
| 21 | @staticmethod |
| 22 | async def _wait_for_calls_async(execute_counter, min_call_count, timeout): |
no test coverage detected