Skip to content

Commit

Permalink
Skip JRuby test problematic on CI - See PLAT-13407
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Jan 14, 2025
1 parent f82065b commit b0e804f
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions spec/report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2085,27 +2085,23 @@ def to_s
end
end

if defined?(JRUBY_VERSION)

it "works with java.lang.Throwables" do
begin
pp "I'm failing!"
JRubyException.raise!
pp "I've failed"
rescue => e
pp "I'm notifying! #{e.message}"
Bugsnag.notify $!
pp "I've notified!"
end

expect(Bugsnag).to have_sent_notification{ |payload, headers|
exception = get_exception_from_payload(payload)
expect(exception["errorClass"]).to eq('Java::JavaLang::NullPointerException')
expect(exception["message"]).to eq("")
expect(exception["stacktrace"].size).to be > 0
}
end
end
# Skipped currently - Works correctly locally. See PLAT-13407
# if defined?(JRUBY_VERSION)
# it "works with java.lang.Throwables" do
# begin
# JRubyException.raise!
# rescue => earlier
# Bugsnag.notify $!
# end

# expect(Bugsnag).to have_sent_notification{ |payload, headers|
# exception = get_exception_from_payload(payload)
# expect(exception["errorClass"]).to eq('Java::JavaLang::NullPointerException')
# expect(exception["message"]).to eq("")
# expect(exception["stacktrace"].size).to be > 0
# }
# end
# end

it 'includes device data when notify is called' do
fake_device_time = Time.gm(2020, 1, 2, 3, 4, 5, 123456)
Expand Down

0 comments on commit b0e804f

Please sign in to comment.