Commit 732d2823 authored by Stan Hu's avatar Stan Hu

Merge branch '292681-fix-broken-master' into 'master'

Remove hardcoded IDs in SchedulePopulateDismissedState

See merge request gitlab-org/gitlab!49673
parents 23d9dfa0 2af8c151
......@@ -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