test/multiverse/suites/sidekiq/test_worker.rb in newrelic_rpm-3.12.0.288 vs test/multiverse/suites/sidekiq/test_worker.rb in newrelic_rpm-3.12.1.298

- old
+ new

@@ -51,9 +51,21 @@ @done.pop end end end + def self.fail=(val) + @fail = val + end + + def self.am_i_a_failure? + @fail + end + def perform(key, val) - TestWorker.record(key, val) + if self.class.am_i_a_failure? + raise "Uh oh" + else + TestWorker.record(key, val) + end end end