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
a27800de
Commit
a27800de
authored
May 24, 2021
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow reads to DB_POOL_HEADROOM to proceed normally
parent
98fc0227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ee/spec/tasks/geo_rake_spec.rb
ee/spec/tasks/geo_rake_spec.rb
+2
-4
No files found.
ee/spec/tasks/geo_rake_spec.rb
View file @
a27800de
...
@@ -428,8 +428,7 @@ RSpec.describe 'geo rake tasks', :geo do
...
@@ -428,8 +428,7 @@ RSpec.describe 'geo rake tasks', :geo do
end
end
it
'removes orphaned registries taking into account TO_PROJECT_ID'
do
it
'removes orphaned registries taking into account TO_PROJECT_ID'
do
allow
(
ENV
).
to
receive
(
:[]
).
with
(
'FROM_PROJECT_ID'
).
and_return
(
nil
)
stub_env
(
'FROM_PROJECT_ID'
=>
nil
,
'TO_PROJECT_ID'
=>
@orphaned
.
project_id
)
allow
(
ENV
).
to
receive
(
:[]
).
with
(
'TO_PROJECT_ID'
).
and_return
(
@orphaned
.
project_id
)
run_rake_task
(
'geo:run_orphaned_project_registry_cleaner'
)
run_rake_task
(
'geo:run_orphaned_project_registry_cleaner'
)
...
@@ -439,8 +438,7 @@ RSpec.describe 'geo rake tasks', :geo do
...
@@ -439,8 +438,7 @@ RSpec.describe 'geo rake tasks', :geo do
end
end
it
'removes orphaned registries taking into account FROM_PROJECT_ID'
do
it
'removes orphaned registries taking into account FROM_PROJECT_ID'
do
allow
(
ENV
).
to
receive
(
:[]
).
with
(
'FROM_PROJECT_ID'
).
and_return
(
@orphaned1
.
project_id
)
stub_env
(
'FROM_PROJECT_ID'
=>
@orphaned1
.
project_id
,
'TO_PROJECT_ID'
=>
nil
)
allow
(
ENV
).
to
receive
(
:[]
).
with
(
'TO_PROJECT_ID'
).
and_return
(
nil
)
run_rake_task
(
'geo:run_orphaned_project_registry_cleaner'
)
run_rake_task
(
'geo:run_orphaned_project_registry_cleaner'
)
...
...
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