in lib/gitlab/qa/component/mock_server.rb [59:78]
def poll_mock_healthcheck(max_tries)
url = "#{tls ? 'https' : 'http'}://#{hostname}:8081/version"
curl_cmd = "curl --cacert #{tls_path}/smocker.crt -s -f -o /dev/null -w '%{http_code}' #{url}"
tries = 0
loop do
if docker.exec(alpine_service_container.name, curl_cmd, shell: "sh")
alpine_service_container.teardown!
break
end
rescue Support::ShellCommand::StatusError => e
raise e if tries >= max_tries
tries += 1
sleep 1
end
end