Skip to content

Commit 9a22f26

Browse files
authored
1 parent b2111be commit 9a22f26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentry-sidekiq/spec/sentry/sidekiq-scheduler/scheduler_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
expect(EveryHappyWorker.sentry_monitor_config.schedule.to_hash).to eq({value: 10, type: :interval, unit: :minute})
5050
end
5151

52+
it "does not add monitors for a one-off job" do
53+
expect(ReportingWorker.ancestors).not_to include(Sentry::Cron::MonitorCheckIns)
54+
end
55+
5256
it 'truncates from the beginning and parameterizes slug' do
5357
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.ancestors).to include(Sentry::Cron::MonitorCheckIns)
5458
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.sentry_monitor_slug).to eq('ongoutermodule-veryveryveryverylonginnermodule-job')

0 commit comments

Comments
 (0)