Fix typing errors
This commit is contained in:
parent
622f46c0da
commit
0b948d8f29
@ -152,6 +152,7 @@ class TestAsyncPeriodicExecutor(AsyncPeriodicExecutorTestBase):
|
||||
if _IS_SYNC:
|
||||
woken.wait(timeout=2)
|
||||
else:
|
||||
assert isinstance(woken, asyncio.Event)
|
||||
await asyncio.wait_for(woken.wait(), timeout=2)
|
||||
self.executor.wake()
|
||||
await self.executor.join(timeout=3)
|
||||
|
||||
@ -150,6 +150,7 @@ class TestPeriodicExecutor(PeriodicExecutorTestBase):
|
||||
if _IS_SYNC:
|
||||
woken.wait(timeout=2)
|
||||
else:
|
||||
assert isinstance(woken, asyncio.Event)
|
||||
asyncio.wait_for(woken.wait(), timeout=2)
|
||||
self.executor.wake()
|
||||
self.executor.join(timeout=3)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user