mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 02:27:57 +00:00
Setup installs the cache and queue adapters on sdk.Runtime, which is a package-level singleton, and records what it installed in this package's own variables. The test left all of it behind, so what a later test in this binary saw depended on whether this one had run - the leak cmd/api's freshRuntime and common/middleware's copy of it exist to prevent. sdk.Runtime is swapped for a fresh one and everything is put back in Cleanup.