Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snmaynard committed Jun 21, 2018
1 parent 3e43a40 commit 8d6ec4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bugsnag/integrations/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def call(worker, msg, queue)
end

def self.notify(exception)
return unless [Interrupt, SystemExit, SignalException].include? exception.class
return if [Interrupt, SystemExit, SignalException].include? exception.class
Bugsnag.notify(exception, true) do |report|
report.severity = "error"
report.severity_reason = {
Expand Down
4 changes: 3 additions & 1 deletion spec/integrations/sidekiq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def perform(value)
before do
Sidekiq::Testing.inline!
stub_const('Sidekiq::VERSION', '2.0.0')
Bugsnag::Sidekiq.configure_server(Sidekiq::Testing)
Sidekiq::Testing.server_middleware do |chain|
chain.add ::Bugsnag::Sidekiq
end
end

it "works" do
Expand Down

0 comments on commit 8d6ec4b

Please sign in to comment.