Skip to content

Commit 5b5b6fc

Browse files
authored
fix(delayed_job): fix tests for DJ 4.2.0 (#2816)
1 parent 9ce51e3 commit 5b5b6fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sentry-delayed_job/spec/sentry/delayed_job_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ def do_nothing_with_args(a)
181181
require "active_job"
182182
require "sentry-rails"
183183

184+
# delayed_job 4.2.0 adapter references AbstractAdapter which was removed in newer ActiveJob versions
185+
# Define it as a compatibility shim
186+
module ActiveJob
187+
module QueueAdapters
188+
class AbstractAdapter
189+
end
190+
end
191+
end
192+
184193
class ReportingJob < ActiveJob::Base
185194
self.queue_adapter = :delayed_job
186195

0 commit comments

Comments
 (0)