From 548a1019c14785f572710b94c3bc4fea7b9212cd Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Mon, 1 May 2023 18:21:22 +0100 Subject: [PATCH] Dump traefik logs when app not booted --- test/integration/deploy_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/deploy_test.rb b/test/integration/deploy_test.rb index 0fb94d27..1661b23a 100644 --- a/test/integration/deploy_test.rb +++ b/test/integration/deploy_test.rb @@ -51,7 +51,12 @@ class DeployTest < ActiveSupport::TestCase end def assert_app_is_up - assert_equal "200", app_response.code + code = app_response.code + if code != "200" + puts "Got response code #{code}, here are the traefik logs:" + mrsk :traefik, :logs + end + assert_equal "200", code end def app_response