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
d372d4ab
Commit
d372d4ab
authored
Jan 17, 2022
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise timeout to 10 seconds because it's slower now
parent
9672aabd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/commands/metrics_server/metrics_server_spec.rb
spec/commands/metrics_server/metrics_server_spec.rb
+2
-2
No files found.
spec/commands/metrics_server/metrics_server_spec.rb
View file @
d372d4ab
...
@@ -47,7 +47,7 @@ RSpec.describe 'bin/metrics-server', :aggregate_failures do
...
@@ -47,7 +47,7 @@ RSpec.describe 'bin/metrics-server', :aggregate_failures do
if
@pid
if
@pid
pgrp
=
Process
.
getpgid
(
@pid
)
pgrp
=
Process
.
getpgid
(
@pid
)
Timeout
.
timeout
(
5
)
do
Timeout
.
timeout
(
10
)
do
Process
.
kill
(
'TERM'
,
-
pgrp
)
Process
.
kill
(
'TERM'
,
-
pgrp
)
Process
.
waitpid
(
@pid
)
Process
.
waitpid
(
@pid
)
end
end
...
@@ -63,7 +63,7 @@ RSpec.describe 'bin/metrics-server', :aggregate_failures do
...
@@ -63,7 +63,7 @@ RSpec.describe 'bin/metrics-server', :aggregate_failures do
it
'serves /metrics endpoint'
do
it
'serves /metrics endpoint'
do
expect
do
expect
do
Timeout
.
timeout
(
5
)
do
Timeout
.
timeout
(
10
)
do
http_ok
=
false
http_ok
=
false
until
http_ok
until
http_ok
sleep
1
sleep
1
...
...
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