test: raise core-package unit coverage to 90% #98

Merged
benvin merged 25 commits from benvin/unit-coverage-90 into master 2026-07-03 14:31:25 +10:00
Showing only changes of commit a6830d6d9f - Show all commits
+5 -1
View File
@@ -33,7 +33,11 @@ func StartPostgres(ctx context.Context) (dsn string, terminate func(), err error
tcpostgres.WithUsername("artifacts"),
tcpostgres.WithPassword("artifacts123"),
testcontainers.WithWaitStrategy(
wait.ForListeningPort("5432/tcp").WithStartupTimeout(60*time.Second),
// Postgres opens the port, runs init scripts, then restarts, so wait
// for the readiness log to appear twice to avoid connection resets.
wait.ForLog("database system is ready to accept connections").
WithOccurrence(2).
WithStartupTimeout(60*time.Second),
),
)
if err != nil {