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
76ea6667
Commit
76ea6667
authored
Feb 02, 2021
by
Erick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid race condition in recent failures spec
parent
a9d33e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
spec/controllers/projects/pipelines/tests_controller_spec.rb
spec/controllers/projects/pipelines/tests_controller_spec.rb
+3
-0
No files found.
spec/controllers/projects/pipelines/tests_controller_spec.rb
View file @
76ea6667
...
...
@@ -41,6 +41,9 @@ RSpec.describe Projects::Pipelines::TestsController do
let
(
:build_ids
)
{
pipeline
.
latest_builds
.
pluck
(
:id
)
}
before
do
build
=
main_pipeline
.
builds
.
last
build
.
update_column
(
:finished_at
,
1
.
day
.
ago
)
# Just to be sure we are included in the report window
# The JUnit fixture for the given build has 3 failures.
# This service will create 1 test case failure record for each.
Ci
::
TestFailureHistoryService
.
new
(
main_pipeline
).
execute
...
...
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