更严厉测试

This commit is contained in:
UnCLAS-Prommer
2026-03-08 17:24:25 +08:00
committed by DrSmoothl
parent cd81f943e3
commit aaf1c9ed40

View File

@@ -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()