You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In tests it races teardown of the disposable harness DB; benign today only because the error is swallowed.
Fix options
Minimal: log the error inside the goroutine (Error.Println on tx.Error).
Better: synchronize the update (or make it injectable/awaitable) so behavior tests can pin it.
Provenance
Surfaced by the silent-failure review pass over the #120 datastore behavior tests (PRD #112, Goodbye gRPC). Pre-existing — not introduced by that branch. Natural home: the Phase 3 datastore rewrite slice, where the method gets reimplemented anyway.
Where
datastores/mysql.go:739(develop @ 92afba5): on the success path,ValidateApiKeyfiresThe goroutine's result and error are fully discarded — no return, no log.
Impact
last_used_datecan silently never update in production (dead column, misleading key-audit data) with zero signal.datastores/auth_harness_test.go).Fix options
Error.Printlnontx.Error).Provenance
Surfaced by the silent-failure review pass over the #120 datastore behavior tests (PRD #112, Goodbye gRPC). Pre-existing — not introduced by that branch. Natural home: the Phase 3 datastore rewrite slice, where the method gets reimplemented anyway.