Commit 2af8c151 authored by Alan Paruszewski's avatar Alan Paruszewski

Remove hardcoded IDs in SchedulePopulateDismissedState

parent 094b606c
......@@ -96,11 +96,13 @@ RSpec.describe SchedulePopulateDismissedStateForVulnerabilities do
freeze_time do
migrate!
ids = [vulnerability_1.id, vulnerability_2.id].sort
expect(described_class::MIGRATION_CLASS)
.to be_scheduled_delayed_migration(3.minutes, 1)
.to be_scheduled_delayed_migration(3.minutes, ids[0])
expect(described_class::MIGRATION_CLASS)
.to be_scheduled_delayed_migration(6.minutes, 2)
.to be_scheduled_delayed_migration(6.minutes, ids[1])
expect(BackgroundMigrationWorker.jobs.size).to eq(2)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment