From 4bb6fc36a5247134108c0ca3d268ea2bab0dd4b7 Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Wed, 13 Apr 2022 14:12:45 +0100 Subject: [PATCH] chore(test): log containers if they fail to start --- functional_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functional_test.go b/functional_test.go index 5fbf5b9d4b..acb3849b27 100644 --- a/functional_test.go +++ b/functional_test.go @@ -195,6 +195,10 @@ func prepareDockerTestEnvironment(ctx context.Context, env *testEnvironment) err } } if !allBrokersUp { + c := exec.Command("docker-compose", "logs", "-t") + c.Stdout = os.Stdout + c.Stderr = os.Stderr + _ = c.Run() return fmt.Errorf("timed out waiting for broker to come up") }