lib/parallel_tests/cli.rb in parallel_tests-3.11.1 vs lib/parallel_tests/cli.rb in parallel_tests-3.12.0

- old
+ new

@@ -389,10 +389,10 @@ # CI systems often fail when there is no output for a long time, so simulate some output def simulate_output_for_ci(simulate) if simulate progress_indicator = Thread.new do - interval = Float(ENV.fetch('PARALLEL_TEST_HEARTBEAT_INTERVAL', 60)) + interval = Float(ENV['PARALLEL_TEST_HEARTBEAT_INTERVAL'] || 60) loop do sleep interval print '.' end end