Skip to content

(fixes): local cache stat test fixes#1013

Merged
collin-lee merged 2 commits intoenvoyproxy:mainfrom
sagarsuperuser:fix/tests
Dec 3, 2025
Merged

(fixes): local cache stat test fixes#1013
collin-lee merged 2 commits intoenvoyproxy:mainfrom
sagarsuperuser:fix/tests

Conversation

@sagarsuperuser
Copy link
Copy Markdown
Contributor

@sagarsuperuser sagarsuperuser commented Nov 27, 2025

What was the issue

testLocalCacheStats never ran, the store used a null sink, expected counts were off, and assertions cast to the wrong types, so local cache metrics weren’t actually validated.

Fixes

Run testLocalCacheStats as subtests in each scenario, wire gostats.NewStore to TestStatSink so stats are flushed and visible, correct the expected hit/miss/lookup/expired/entry counts, and assert using uint64 to match emitted metrics.

Signed-off-by: Sagar Waidande <sagar10018233@gmail.com>
…nfig local cache stat tests

Signed-off-by: Sagar Waidande <sagar10018233@gmail.com>
@collin-lee collin-lee merged commit 21e2655 into envoyproxy:main Dec 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants