18 lines
374 B
Go
18 lines
374 B
Go
//go:build integration
|
|
|
|
package integration_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestPostgresHealthQueryAgainstContainer(t *testing.T) {
|
|
env := bootstrap(t, postgresService)
|
|
ctx, cancel := context.WithTimeout(t.Context(), readinessTimeout)
|
|
defer cancel()
|
|
if err := env.Postgres.Check(ctx); err != nil {
|
|
t.Fatalf("PostgreSQL health query failed: %v", err)
|
|
}
|
|
}
|