更严厉测试
This commit is contained in:
committed by
DrSmoothl
parent
cd81f943e3
commit
aaf1c9ed40
@@ -127,12 +127,12 @@ async def test_add_callback_while_watcher_running(tmp_path: Path):
|
||||
try:
|
||||
with file.open("w") as f:
|
||||
f.write("change")
|
||||
await asyncio.sleep(0.2)
|
||||
await asyncio.sleep(0.5)
|
||||
assert calls == 1
|
||||
watcher.unsubscribe(uuid)
|
||||
with file.open("w") as f:
|
||||
f.write("change2")
|
||||
await asyncio.sleep(0.2)
|
||||
await asyncio.sleep(0.5)
|
||||
assert calls == 1
|
||||
finally:
|
||||
await watcher.stop()
|
||||
|
||||
Reference in New Issue
Block a user