We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2111be commit 9a22f26Copy full SHA for 9a22f26
sentry-sidekiq/spec/sentry/sidekiq-scheduler/scheduler_spec.rb
@@ -49,6 +49,10 @@
49
expect(EveryHappyWorker.sentry_monitor_config.schedule.to_hash).to eq({value: 10, type: :interval, unit: :minute})
50
end
51
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
+
56
it 'truncates from the beginning and parameterizes slug' do
57
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.ancestors).to include(Sentry::Cron::MonitorCheckIns)
58
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.sentry_monitor_slug).to eq('ongoutermodule-veryveryveryverylonginnermodule-job')
0 commit comments