From: Daniel Hahler Date: Wed, 6 May 2015 14:30:12 +0000 (+0200) Subject: Vimrunner: doc for config.reuse_server=false X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/668edf8d06e07cb74d8dd9680c65f290b61c10f0?ds=inline;hp=398d75a0023532f4f4164c6fee39ca960dc6c1c5 Vimrunner: doc for config.reuse_server=false I've tried to set it to true by default, but it is still buggy. --- 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