From 93650d7d5adc46e2d3a65a68120adc8c11b5f4b7 Mon Sep 17 00:00:00 2001 From: Tine Date: Tue, 6 Feb 2024 23:37:06 +0100 Subject: [PATCH] test: simplify setup --- cmd/server_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmd/server_test.go b/cmd/server_test.go index 5044b78..a24e004 100644 --- a/cmd/server_test.go +++ b/cmd/server_test.go @@ -19,17 +19,8 @@ import ( ) func setupPostgres(ctx context.Context, t *testing.T) *postgres.PostgresContainer { - - dbName := "users" - dbUser := "user" - dbPassword := "password" - postgresContainer, err := postgres.RunContainer(ctx, testcontainers.WithImage("docker.io/postgres:15.2-alpine"), - postgres.WithDatabase(dbName), - postgres.WithUsername(dbUser), - postgres.WithPassword(dbPassword), - testcontainers.WithWaitStrategy( wait.ForLog("database system is ready to accept connections"). WithOccurrence(2).