$ make test-go BASE_URL=http://localhost:18080 cd service && TEST_BASE_URL="http://localhost:18080" go test -race -count=1 -v ./... ? gitea.privcloud.tech/mtusi2026/cmd/app [no test files] === RUN TestLostPostResponseIsNotRetried --- PASS: TestLostPostResponseIsNotRetried (0.00s) PASS ok gitea.privcloud.tech/mtusi2026/cmd/benchmark 1.452s ? gitea.privcloud.tech/mtusi2026/internal/adapter/controller/http [no test files] ? gitea.privcloud.tech/mtusi2026/internal/adapter/repository/cache/inmemory [no test files] ? gitea.privcloud.tech/mtusi2026/internal/adapter/repository/cache/outside [no test files] === RUN TestIdempotencyTransactionAndExpiry idempotency_test.go:20: run make test-storage for an isolated PostgreSQL database --- SKIP: TestIdempotencyTransactionAndExpiry (0.00s) PASS ok gitea.privcloud.tech/mtusi2026/internal/adapter/repository/storage 2.089s ? gitea.privcloud.tech/mtusi2026/internal/config [no test files] ? gitea.privcloud.tech/mtusi2026/internal/dto [no test files] ? gitea.privcloud.tech/mtusi2026/internal/gen/contracts [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/apperr [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/auth/jwtprovider [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/cache [no test files] === RUN TestSessionFingerprints --- PASS: TestSessionFingerprints (0.03s) PASS ok gitea.privcloud.tech/mtusi2026/internal/pkg/encrypting 1.755s ? gitea.privcloud.tech/mtusi2026/internal/pkg/migrator [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres/txmanager [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/framework [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/headers [no test files] === RUN TestVerifiedSessionIsRequestScoped 2026/11/07 09:23:37 ERROR response error="revoked session" status=401 requestId=ae642f40-2f82-46c6-99ce-4fb1e2828df1 --- PASS: TestVerifiedSessionIsRequestScoped (0.00s) === RUN TestMissingTokenDoesNotCallSessionStore 2026/11/07 09:23:37 ERROR response error="missing or invalid bearer token" status=401 requestId=9b6da28e-8225-4474-8371-29273773e2ce --- PASS: TestMissingTokenDoesNotCallSessionStore (0.00s) PASS ok gitea.privcloud.tech/mtusi2026/internal/pkg/rest/middleware 1.487s ? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/router [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/types [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/types/authprovider [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/types/environment [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/types/role [no test files] ? gitea.privcloud.tech/mtusi2026/internal/pkg/validator [no test files] ? gitea.privcloud.tech/mtusi2026/internal/service/auth [no test files] ? gitea.privcloud.tech/mtusi2026/internal/service/chat [no test files] ? gitea.privcloud.tech/mtusi2026/internal/service/user [no test files] ? gitea.privcloud.tech/mtusi2026/migrations [no test files] === RUN TestInvalidJSON === RUN TestInvalidJSON/malformed === RUN TestInvalidJSON/wrong_type === RUN TestInvalidJSON/unknown_field --- PASS: TestInvalidJSON (0.01s) --- PASS: TestInvalidJSON/malformed (0.01s) --- PASS: TestInvalidJSON/wrong_type (0.00s) --- PASS: TestInvalidJSON/unknown_field (0.00s) === RUN TestForeignChatIsHidden --- PASS: TestForeignChatIsHidden (0.35s) === RUN TestEmptyMessage --- PASS: TestEmptyMessage (0.11s) === RUN TestDuplicateUsername --- PASS: TestDuplicateUsername (0.26s) === RUN TestMessagePagination --- PASS: TestMessagePagination (0.17s) === RUN TestConcurrentMessages concurrency_test.go:160: 10 clients sent 100 messages; history contains 100 unique messages across 6 pages --- PASS: TestConcurrentMessages (1.30s) === RUN TestIdempotencyContract --- PASS: TestIdempotencyContract (0.40s) === RUN TestConcurrentIdempotencyAcrossReplicas idempotency_test.go:103: 32 requests across 2 replicas created exactly one message --- PASS: TestConcurrentIdempotencyAcrossReplicas (0.13s) PASS ok gitea.privcloud.tech/mtusi2026/tests 5.092s