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
23653c5e
Commit
23653c5e
authored
Apr 15, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ProjectPipelineStatus cache specs flakiness
parent
47d8b264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/services/ci/destroy_pipeline_service_spec.rb
spec/services/ci/destroy_pipeline_service_spec.rb
+1
-1
spec/services/ci/expire_pipeline_cache_service_spec.rb
spec/services/ci/expire_pipeline_cache_service_spec.rb
+1
-1
No files found.
spec/services/ci/destroy_pipeline_service_spec.rb
View file @
23653c5e
...
...
@@ -17,7 +17,7 @@ RSpec.describe ::Ci::DestroyPipelineService do
expect
{
pipeline
.
reload
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
end
it
'clears the cache'
,
:use_clean_rails_
memory_store
_caching
do
it
'clears the cache'
,
:use_clean_rails_
redis
_caching
do
create
(
:commit_status
,
:success
,
pipeline:
pipeline
,
ref:
pipeline
.
ref
)
expect
(
project
.
pipeline_status
.
has_status?
).
to
be_truthy
...
...
spec/services/ci/expire_pipeline_cache_service_spec.rb
View file @
23653c5e
...
...
@@ -49,7 +49,7 @@ RSpec.describe Ci::ExpirePipelineCacheService do
let
(
:project_with_repo
)
{
create
(
:project
,
:repository
)
}
let!
(
:pipeline_with_commit
)
{
create
(
:ci_pipeline
,
:success
,
project:
project_with_repo
,
sha:
project_with_repo
.
commit
.
id
)
}
it
'clears the cache'
,
:use_clean_rails_
memory_store
_caching
do
it
'clears the cache'
,
:use_clean_rails_
redis
_caching
do
create
(
:commit_status
,
:success
,
pipeline:
pipeline_with_commit
,
ref:
pipeline_with_commit
.
ref
)
# Sanity check
...
...
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