From 9d6ccf988993418858d5337c8d8145cda3769cf5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 20 Feb 2023 17:59:41 +0100 Subject: [PATCH] Changed to a timeout --- test/commands/healthcheck_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/commands/healthcheck_test.rb b/test/commands/healthcheck_test.rb index c7438126..54580e61 100644 --- a/test/commands/healthcheck_test.rb +++ b/test/commands/healthcheck_test.rb @@ -24,7 +24,7 @@ class CommandsHealthcheckTest < ActiveSupport::TestCase test "curl" do assert_equal \ - "curl --silent --output /dev/null --write-out '%{http_code}' --retry-max-time 10 --retry 5 http://localhost:3999/up", + "curl --silent --output /dev/null --write-out '%{http_code}' --max-time 2 http://localhost:3999/up", new_command.curl.join(" ") end @@ -32,7 +32,7 @@ class CommandsHealthcheckTest < ActiveSupport::TestCase @config[:healthcheck] = { "path" => "/healthz" } assert_equal \ - "curl --silent --output /dev/null --write-out '%{http_code}' --retry-max-time 10 --retry 5 http://localhost:3999/healthz", + "curl --silent --output /dev/null --write-out '%{http_code}' --max-time 2 http://localhost:3999/healthz", new_command.curl.join(" ") end