Skip to content

Commit

Permalink
Dump container logs when it fails to become ready
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Apr 29, 2024
1 parent 8c4b671 commit 08eb87c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trino/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (

"github.com/golang-jwt/jwt/v4"
dt "github.com/ory/dockertest/v3"
docker "github.com/ory/dockertest/v3/docker"
)

var (
Expand Down Expand Up @@ -121,6 +122,7 @@ func TestMain(m *testing.M) {
}
return nil
}); err != nil {
pool.Client.Logs(docker.LogsOptions{Container: resource.Container.ID})
log.Fatalf("Timed out waiting for container to get ready: %s", err)
}
*integrationServerFlag = "http://test@localhost:" + resource.GetPort("8080/tcp")
Expand Down

0 comments on commit 08eb87c

Please sign in to comment.