Skip to content

Commit

Permalink
Add accidentally removed a test for a one-off job (#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi authored Nov 29, 2023
1 parent b2111be commit 9a22f26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
expect(EveryHappyWorker.sentry_monitor_config.schedule.to_hash).to eq({value: 10, type: :interval, unit: :minute})
end

it "does not add monitors for a one-off job" do
expect(ReportingWorker.ancestors).not_to include(Sentry::Cron::MonitorCheckIns)
end

it 'truncates from the beginning and parameterizes slug' do
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.ancestors).to include(Sentry::Cron::MonitorCheckIns)
expect(VeryLongOuterModule::VeryVeryVeryVeryLongInnerModule::Job.sentry_monitor_slug).to eq('ongoutermodule-veryveryveryverylonginnermodule-job')
Expand Down

0 comments on commit 9a22f26

Please sign in to comment.