PostgreSQL in Docker requires SSL but tests weren't configured for it. Adding ?sslmode=disable to the connection string fixes TLS errors.