Commit d372d4ab authored by Lin Jen-Shin's avatar Lin Jen-Shin

Raise timeout to 10 seconds because it's slower now

parent 9672aabd
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment