Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache tests #209

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Add cache tests #209

merged 1 commit into from
Oct 29, 2024

Conversation

masklinn
Copy link
Contributor

@masklinn masklinn commented Mar 28, 2024

No description provided.

@masklinn masklinn changed the title Add test to ensure backfilling results does not lead to evictions Add cache tests Mar 28, 2024
Partial results are back-filled (new domains added) by re-setting them
in the cache. With a sufficiently incorrect implementation, the cache
can evict entries on that occasion even though it does not need
to (because we're replacing an existing entry).

Exactly that should have been fixed by ua-parser#204, but was not tested at the
time.

Fixes ua-parser#199
@masklinn masklinn enabled auto-merge (rebase) October 29, 2024 21:20
@masklinn masklinn merged commit 2476d04 into ua-parser:master Oct 29, 2024
23 checks passed
@masklinn masklinn deleted the more-cache-tests branch November 24, 2024 15:29
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.

1 participant