aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/watch_spec.lua
diff options
context:
space:
mode:
authorJon Huhn <nojnhuh@users.noreply.github.com>2023-03-26 04:41:27 -0500
committerGitHub <noreply@github.com>2023-03-26 10:41:27 +0100
commit6a6191174afd7604b82fcc04b9a27b8d51133c9f (patch)
treec1dc59db706eef980c6ca52ce920f4bb299d00c7 /test/functional/lua/watch_spec.lua
parent4863ca6b8902c5b0aab95f2af640118cd417d379 (diff)
downloadrneovim-6a6191174afd7604b82fcc04b9a27b8d51133c9f.tar.gz
rneovim-6a6191174afd7604b82fcc04b9a27b8d51133c9f.tar.bz2
rneovim-6a6191174afd7604b82fcc04b9a27b8d51133c9f.zip
test: fix flaky watchfiles tests (#22637)
Diffstat (limited to 'test/functional/lua/watch_spec.lua')
-rw-r--r--test/functional/lua/watch_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/lua/watch_spec.lua b/test/functional/lua/watch_spec.lua
index 19bb411ce6..554480c2b3 100644
--- a/test/functional/lua/watch_spec.lua
+++ b/test/functional/lua/watch_spec.lua
@@ -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)