Skip to content

Commit

Permalink
chore(test): log containers if they fail to start
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwe committed Apr 13, 2022
1 parent ffb2af2 commit 722edfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
downErr := c.Run()
return fmt.Errorf("timed out waiting for broker to come up")
}

Expand Down

0 comments on commit 722edfa

Please sign in to comment.