From 9e0b178c6ff0c229c09a7a71119767c1f474ea74 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Thu, 7 Apr 2016 16:23:39 -0400 Subject: [PATCH] Correctly configure Aruba command timeout This removes the misconfiguration of Aruba timeout by instance variable --- .travis.yml | 2 ++ features/support/env.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 216c0f5..72a38d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: ruby +env: + - ARUBA_TIMEOUT=240 before_install: - gem update --system - gem update bundler diff --git a/features/support/env.rb b/features/support/env.rb index 791b55c..106ee5d 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -2,8 +2,8 @@ require 'aruba/cucumber' PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze -Before do - @aruba_timeout_seconds = 3600 +Aruba.configure do |config| + config.exit_timeout = Integer ENV.fetch("ARUBA_TIMEOUT") { 120 } end Aruba.configure do |config|