Skip to content

Commit

Permalink
update to no longer use deprecated methods
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Mason <mimason@equinix.com>
  • Loading branch information
mikemrm committed Aug 8, 2024
1 parent 1e0e0ad commit 7dc3d47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/containersx/dbcontainers.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,11 @@ func NewPostgresDB(ctx context.Context, img string, opts ...testcontainers.Conta
}

opts = append(opts,
testcontainers.WithImage(fmt.Sprintf("%s:%s", image, imageTag)),
testcontainers.WithWaitStrategy(wait.ForSQL(nat.Port("5432"), "postgres", uriFunc)),
postgres.WithPassword("postgres"),
)

container, err := postgres.RunContainer(ctx, opts...)
container, err := postgres.Run(ctx, fmt.Sprintf("%s:%s", image, imageTag), opts...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7dc3d47

Please sign in to comment.