From 7dc3d47adb33b0f445b6837ed422bbec09975662 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Thu, 8 Aug 2024 13:24:23 -0500 Subject: [PATCH] update to no longer use deprecated methods Signed-off-by: Mike Mason --- testing/containersx/dbcontainers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testing/containersx/dbcontainers.go b/testing/containersx/dbcontainers.go index c9e56c5..9645aff 100644 --- a/testing/containersx/dbcontainers.go +++ b/testing/containersx/dbcontainers.go @@ -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 }