Skip to content

Commit 668edf8

Browse files
committed
Vimrunner: doc for config.reuse_server=false
I've tried to set it to true by default, but it is still buggy.
1 parent 398d75a commit 668edf8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/spec_helper.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
require 'vimrunner/rspec'
33

44
Vimrunner::RSpec.configure do |config|
5+
# Use a single Vim instance for the test suite. Set to false to use an
6+
# instance per test (slower, but can be easier to manage).
57
# FIXME: reuse_server = true seems to hang after a certain number of test cases
6-
config.reuse_server = false
8+
# - Travis CI hangs after 15 successful tests.
9+
# - Locally it may hang also, with Vim and Xorg using 100% CPU.
10+
# Therefore default to false in both cases.
11+
config.reuse_server = ENV['CI'] ? false : false
712

813
config.start_vim do
914
vim = Vimrunner.start

0 commit comments

Comments
 (0)