lib/coverband/integrations/background.rb in coverband-4.2.7 vs lib/coverband/integrations/background.rb in coverband-5.0.0.rc.3
- old
+ new
@@ -25,13 +25,13 @@
logger = Coverband.configuration.logger
@semaphore.synchronize do
return if running?
- logger.debug('Coverband: Starting background reporting') if Coverband.configuration.verbose
+ logger.debug("Coverband: Starting background reporting") if Coverband.configuration.verbose
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds
- @thread = Thread.new do
+ @thread = Thread.new {
loop do
Coverband.report_coverage
Coverband.configuration.view_tracker&.report_views_tracked
if Coverband.configuration.reporting_wiggle
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds + rand(Coverband.configuration.reporting_wiggle.to_i)
@@ -39,10 +39,10 @@
if Coverband.configuration.verbose
logger.debug("Coverband: background reporting coverage (#{Coverband.configuration.store.type}). Sleeping #{sleep_seconds}s")
end
sleep(sleep_seconds)
end
- end
+ }
end
end
end
end