Skip to content

Commit

Permalink
Update deprecated function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
flimzy committed Jul 24, 2024
1 parent fd1a46f commit 5b67fe7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func createDB(t *testing.T, driver, dsn string) {
func startPostgres(t *testing.T) string {
ctx := context.Background()

postgresContainer, err := postgres.RunContainer(ctx,
testcontainers.WithImage("docker.io/postgres:15.2-alpine"),
postgresContainer, err := postgres.Run(ctx, "docker.io/postgres:15.2-alpine",
postgres.WithDatabase(testDB),
testcontainers.WithWaitStrategy(
wait.ForLog("database system is ready to accept connections").
Expand All @@ -94,8 +93,7 @@ func startPostgres(t *testing.T) string {
func startMySQL(t *testing.T) string {
ctx := context.Background()

mysqlContainer, err := mysql.RunContainer(ctx,
testcontainers.WithImage("mysql:8"),
mysqlContainer, err := mysql.Run(ctx, "mysql:8",
mysql.WithUsername("root"),
mysql.WithPassword("password"),
mysql.WithDatabase(testDB),
Expand Down

0 comments on commit 5b67fe7

Please sign in to comment.