mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
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.
This commit is contained in:
parent
566e479f32
commit
e077bb8ff4
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user