mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-24 19:41:14 +02:00
modelCache is a package-level global, so the fixed cache keys leaked across runs — `go test -run TestCachedDiscoveryDoesNotCacheEmpty -count=2` failed on the second iteration because the non-empty entry was still cached and the callback wasn't invoked. Clear the keys up front and via t.Cleanup. Co-authored-by: multica-agent <github@multica.ai>