test: fix flaky watchfiles tests (#22637)

This commit is contained in:
Jon Huhn
2023-03-26 04:41:27 -05:00
committed by GitHub
parent 4863ca6b89
commit 6a6191174a
2 changed files with 8 additions and 1 deletions

View File

@@ -126,6 +126,8 @@ describe('vim._watch', function()
expected_events = expected_events + 1
wait_for_events()
vim.wait(100)
local watched_path = root_dir .. '/file'
local watched, err = io.open(watched_path, 'w')
assert(not err, err)