From e077bb8ff4b5dd510a43bf543fa7e9aa4effca2b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 20 May 2024 13:37:33 -0400 Subject: [PATCH] tests(neovim): Increase wait time The addition of the neovim plugins made the initial time to open longer than 5 seconds and thus failed the tests. Note that using an alternative method like machine.wait_for_text() is probably better in the long run to avoid flaky tests. --- tests/neovim.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/neovim.nix b/tests/neovim.nix index bc7dae09..e088360d 100644 --- a/tests/neovim.nix +++ b/tests/neovim.nix @@ -33,18 +33,18 @@ in machine.send_chars("nvim hello.txt") machine.sleep(1) machine.send_key("ret") - machine.sleep(5) + machine.sleep(20) machine.send_chars("i") - machine.sleep(1) + machine.sleep(2) machine.send_chars("Hello world") - machine.sleep(1) + machine.sleep(2) machine.send_key("esc") - machine.sleep(1) + machine.sleep(2) machine.send_chars(":wq") - machine.sleep(1) + machine.sleep(2) machine.send_key("ret") - machine.sleep(1) + machine.sleep(2) text = machine.succeed("cat /home/user/hello.txt")