class Minitest::Distributed::Reporters::RedisCoordinatorWarningsReporter
Public Instance Methods
report()
click to toggle source
# File lib/minitest/distributed/reporters/redis_coordinator_warnings_reporter.rb, line 11 def report warnings = [reclaim_timeout_warning, reclaim_failed_warning].compact warnings.each do |warning| io.puts(warning) io.puts end end
Private Instance Methods
configuration()
click to toggle source
# File lib/minitest/distributed/reporters/redis_coordinator_warnings_reporter.rb, line 22 def configuration options[:distributed] end
reclaim_failed_warning()
click to toggle source
# File lib/minitest/distributed/reporters/redis_coordinator_warnings_reporter.rb, line 45 def reclaim_failed_warning if redis_coordinator.reclaimed_failed_tests.any? <<~WARNING WARNING: The following tests were reclaimed from another worker because they failed: #{redis_coordinator.reclaimed_failed_tests.map { |test| "- #{test.identifier}" }.join("\n")} WARNING end end
reclaim_timeout_warning()
click to toggle source
# File lib/minitest/distributed/reporters/redis_coordinator_warnings_reporter.rb, line 32 def reclaim_timeout_warning if redis_coordinator.reclaimed_timeout_tests.any? <<~WARNING WARNING: The following tests were reclaimed from another worker: #{redis_coordinator.reclaimed_timeout_tests.map { |test| "- #{test.identifier}" }.join("\n")} The original worker did not complete running these tests in #{configuration.test_timeout_seconds}s. This either means that the worker unexpectedly went away, or that the test is too slow. WARNING end end
redis_coordinator()
click to toggle source
# File lib/minitest/distributed/reporters/redis_coordinator_warnings_reporter.rb, line 27 def redis_coordinator T.cast(configuration.coordinator, Coordinators::RedisCoordinator) end