diff --git a/.travis.yml b/.travis.yml index 519edd4..351954f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ branches: - master - guard_dependencies env: - - GUARD_SPEC_SLEEP=2 + - GUARD_SLEEP=1.5 notifications: recipients: - thibaud@thibaud.me diff --git a/spec/support/listener_helper.rb b/spec/support/listener_helper.rb index 7e2cd2a..556c698 100644 --- a/spec/support/listener_helper.rb +++ b/spec/support/listener_helper.rb @@ -1,10 +1,11 @@ private def sleep_time - ENV['GUARD_SPEC_SLEEP'] ? ENV['GUARD_SPEC_SLEEP'].to_i : 1 + @sleep_time ||= ENV['GUARD_SLEEP'] ? ENV['GUARD_SLEEP'].to_f : 1 end def start + puts "ST #{sleep_time}" sleep(sleep_time) @listener.update_last_event Thread.new { @listener.start }