From c5e3545efbb61f0fb141512aefeadf5bfabdc3a1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 21 Jul 2018 22:22:15 +0200 Subject: [PATCH 1/1] tests: fix vim.kill: use (#109) --- spec/spec_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 40b5bfe..c6cc517 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,7 +21,11 @@ Vimrunner::RSpec.configure do |config| # More friendly killing. # Otherwise profiling information might not be written. def vim.kill - normal(':qall!') + normal(':qall!') + + Timeout.timeout(5) do + sleep 0.1 while server.running? + end end plugin_path = File.expand_path('../..', __FILE__) -- 2.39.5