Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: updated test

=8215a2c53a62
diff --git a/backend-go/tests/infra/postgres.go b/backend-go/tests/infra/postgres.go
index 9f55f73d28..1136f6b811 100644
--- a/backend-go/tests/infra/postgres.go
+++ b/backend-go/tests/infra/postgres.go
@@ -36,7 +36,10 @@ func startPostgres(ctx context.Context, networkName string) (*PostgresService, e
"POSTGRES_PASSWORD": pgPassword,
"POSTGRES_DB": pgDB,
},
- WaitingFor: wait.ForListeningPort("5432/tcp").WithStartupTimeout(60 * time.Second),
+ WaitingFor: wait.ForAll(
+ wait.ForListeningPort("5432/tcp"),
+ wait.ForLog("database system is ready to accept connections").WithOccurrence(2),
+ ).WithStartupTimeout(60 * time.Second),
}
container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{