Be a bit more patient during tests.

Seeing reasonably consistent local failures at 20 seconds.
This commit is contained in:
Matthew Kent
2024-01-08 13:34:03 -08:00
parent 4b05068493
commit 9c681d4a38

View File

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