Skip to content

Commit c5e3545

Browse files
authored
tests: fix vim.kill: use <CR> (#109)
1 parent c294334 commit c5e3545

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
# More friendly killing.
2222
# Otherwise profiling information might not be written.
2323
def vim.kill
24-
normal(':qall!')
24+
normal(':qall!<CR>')
25+
26+
Timeout.timeout(5) do
27+
sleep 0.1 while server.running?
28+
end
2529
end
2630

2731
plugin_path = File.expand_path('../..', __FILE__)

0 commit comments

Comments
 (0)