Skip to content

Commit

Permalink
chore: apply testcontainers#1160 after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed May 11, 2023
1 parent f5fe64e commit 767a2ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/testcontainersdocker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ func NewClient(ctx context.Context, ops ...client.Opt) (*client.Client, error) {
return nil, err
}

_, err = cli.Ping(context.TODO())
if err != nil {
// fallback to environment
if _, err = cli.Ping(context.Background()); err != nil {
// Fallback to environment.
cli, err = defaultClient(context.Background())
if err != nil {
return nil, err
Expand Down

0 comments on commit 767a2ce

Please sign in to comment.