Merge pull request #637 from basecamp/tests-wait-longer-for-health

Be a bit more patient during tests
This commit is contained in:
Donal McBreen
2024-01-09 16:45:28 +00:00
committed by GitHub

View File

@@ -103,7 +103,7 @@ class IntegrationTest < ActiveSupport::TestCase
assert_equal "200", code
end
def wait_for_healthy(timeout: 20)
def wait_for_healthy(timeout: 30)
timeout_at = Time.now + timeout
while docker_compose("ps -a | tail -n +2 | grep -v '(healthy)' | wc -l", capture: true) != "0"
if timeout_at < Time.now