From 668edf8d06e07cb74d8dd9680c65f290b61c10f0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 6 May 2015 16:30:12 +0200 Subject: [PATCH 1/1] Vimrunner: doc for config.reuse_server=false I've tried to set it to true by default, but it is still buggy. --- spec/spec_helper.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 022f65b..82b152c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,8 +2,13 @@ require 'vimrunner' require 'vimrunner/rspec' Vimrunner::RSpec.configure do |config| + # Use a single Vim instance for the test suite. Set to false to use an + # instance per test (slower, but can be easier to manage). # FIXME: reuse_server = true seems to hang after a certain number of test cases - config.reuse_server = false + # - Travis CI hangs after 15 successful tests. + # - Locally it may hang also, with Vim and Xorg using 100% CPU. + # Therefore default to false in both cases. + config.reuse_server = ENV['CI'] ? false : false config.start_vim do vim = Vimrunner.start -- 2.39.5