feat(test): 在 FileWatcher 中添加 force_polling 参数以增强文件监控功能
This commit is contained in:
@@ -123,7 +123,7 @@ async def test_add_callback_while_watcher_running(tmp_path: Path):
|
||||
dirs.mkdir(exist_ok=True)
|
||||
file = (dirs / "a.toml").resolve()
|
||||
file.touch()
|
||||
watcher = FileWatcher(paths=[dirs], debounce_ms=200)
|
||||
watcher = FileWatcher(paths=[dirs], debounce_ms=200, force_polling=True)
|
||||
|
||||
calls = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user