# Automated tests against real PostgreSQL and Valkey (testcontainers): go test -race -v # date: 2026-10-21T12:09:10Z, commit: 7aa86d3 (branch solution/bpi2301-bakulin) # host: Windows 11, Docker Desktop 28.5.1 (4 CPU, 4111327232 bytes RAM), Go go1.27.1, Python 3.13.1 # full suite: make unit (go test -race -count=1 ./...), 16 packages ok, 0 failed --- PASS: TestRegisterUserShapeAndConflicts (0.18s) --- PASS: TestConcurrentSendsProduceExactlyUniqueMessages (0.97s) --- PASS: TestLoginReturnsBearerSession (0.14s) --- PASS: TestLoginFailuresAreUniformBasicChallenges (0.26s) --- PASS: TestLoginAcceptsColonAndUnicodePasswords (0.08s) --- PASS: TestProtectedRoutesAcceptOnlyBearer (0.17s) --- PASS: TestLogoutRevokesOnlyTheCurrentToken (0.16s) --- PASS: TestSessionExpiresAfterTTL (1.29s) --- PASS: TestValkeyOutageAnswers503 (3.75s) --- PASS: TestPostgresOutageAnswers503 (3.83s) --- PASS: TestHungPostgresAnswers503WithinTheRequestTimeout (5.34s) ok messenger/internal/app 30.321s --- PASS: TestLoginIssuesOpaqueTokenBackedByStoredSession (0.11s) --- PASS: TestLoginWithBadCredentialsCreatesNoSession (0.21s) --- PASS: TestAuthenticateResolvesTheOwner (0.15s) --- PASS: TestLogoutRevokesOnlyThatSession (0.14s) --- PASS: TestSessionExpiresAfterTTL (1.19s) ok messenger/internal/auth 15.854s ok messenger/internal/chat 12.655s [no tests to run] --- PASS: TestConcurrentAppendsKeepEveryMessage (0.17s) ok messenger/internal/chat/store 13.188s ok messenger/internal/platform/apperr 1.627s [no tests to run] ok messenger/internal/platform/config 1.627s [no tests to run] --- PASS: TestUnavailableCauseIsLoggedButNotReturned (0.03s) --- PASS: TestTimeoutBoundsTheRequestContext (0.05s) ok messenger/internal/platform/httpx 2.942s ok messenger/internal/platform/ident 1.656s [no tests to run] ok messenger/internal/platform/pagination 1.778s [no tests to run] ok messenger/internal/platform/password 1.641s [no tests to run] --- PASS: TestMigrateIsRepeatable (0.02s) --- PASS: TestPoolAppliesLimitsAndTimeouts (0.01s) --- PASS: TestClassifyMarksUnreachableDatabaseAsUnavailable (0.00s) --- PASS: TestClassifyRealConnectFailure (0.01s) ok messenger/internal/platform/postgres 9.771s ok messenger/internal/platform/valkey 2.782s [no tests to run] ok messenger/internal/server 3.156s [no tests to run] ok messenger/internal/testenv 2.767s [no tests to run] --- PASS: TestRegisterStoresUserWithPasswordHash (0.08s) --- PASS: TestRegisterRejectsInvalidInputAndStoresNothing (0.01s) --- PASS: TestRegisterReportsDuplicateAsConflict (0.14s) --- PASS: TestConcurrentRegistrationOfOneUsernameHasOneWinner (0.24s) --- PASS: TestExistingIDsReturnsOnlyRegistered (0.16s) --- PASS: TestAuthenticateChecksPassword (0.14s) --- PASS: TestAuthenticateFailuresLookTheSame (0.32s) ok messenger/internal/user 12.868s