fleet/server/vulnerabilities/nvd/tools/cvefeed
Victor Lyuboslavsky c316fd4a56
Fix flaky test: TestCacheEviction panics (#31698)
Fixes #31697 flaky TestCacheEviction test.

Seen here:
https://github.com/fleetdm/fleet/actions/runs/16802837212/job/47588005349

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved cache stability by adding safety checks to prevent invalid
updates when cache entries are evicted or removed.
* Enhanced eviction logic to prevent out-of-bounds errors during cache
management.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-09 07:41:47 +02:00
..
nvd Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
cvecache.go Fix flaky test: TestCacheEviction panics (#31698) 2025-08-09 07:41:47 +02:00
dictionary.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
eviction_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
evictionqueue.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
evictionqueue_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
feed.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
matching_json_test.go App OS Vulnerability Matching (#19486) 2024-06-13 11:20:28 -04:00
matching_overrides_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
stats.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
stats_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
vuln.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00