Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2af8c151
Commit
2af8c151
authored
Dec 10, 2020
by
Alan Paruszewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hardcoded IDs in SchedulePopulateDismissedState
parent
094b606c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/spec/migrations/schedule_populate_dismissed_state_for_vulnerabilities_spec.rb
...dule_populate_dismissed_state_for_vulnerabilities_spec.rb
+4
-2
No files found.
ee/spec/migrations/schedule_populate_dismissed_state_for_vulnerabilities_spec.rb
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment