更严厉测试
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:
|
try:
|
||||||
with file.open("w") as f:
|
with file.open("w") as f:
|
||||||
f.write("change")
|
f.write("change")
|
||||||
await asyncio.sleep(0.2)
|
await asyncio.sleep(0.5)
|
||||||
assert calls == 1
|
assert calls == 1
|
||||||
watcher.unsubscribe(uuid)
|
watcher.unsubscribe(uuid)
|
||||||
with file.open("w") as f:
|
with file.open("w") as f:
|
||||||
f.write("change2")
|
f.write("change2")
|
||||||
await asyncio.sleep(0.2)
|
await asyncio.sleep(0.5)
|
||||||
assert calls == 1
|
assert calls == 1
|
||||||
finally:
|
finally:
|
||||||
await watcher.stop()
|
await watcher.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user