From 0ff707a316f70ec34e63ef5f239d53e5bdc8a1ba Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com> Date: Fri, 13 Feb 2026 20:17:13 -0600 Subject: [PATCH] Fixed failing test on main (#39889) 1. Added CVE-2026-1703 (resolved in version 26.0) to the expected CVE list for cpe:2.3:a:pypa:pip:9.0.3:*:*:*:*:python:*:* 2. Changed continuesToUpdate from false to true; pip is an actively maintained package that continues to receive new CVE entries. Using continuesToUpdate: true makes the test check that the expected CVEs are a subset of found CVEs (via Contains) rather than requiring an exact match (via ElementsMatch), preventing this test from breaking again when the next pip CVE is published. --- server/vulnerabilities/nvd/cve_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/vulnerabilities/nvd/cve_test.go b/server/vulnerabilities/nvd/cve_test.go index ff7fe980e8..2ad169014e 100644 --- a/server/vulnerabilities/nvd/cve_test.go +++ b/server/vulnerabilities/nvd/cve_test.go @@ -174,8 +174,9 @@ func TestTranslateCPEToCVE(t *testing.T) { {ID: "CVE-2021-3572", resolvedInVersion: "21.1"}, {ID: "CVE-2025-8869", resolvedInVersion: "25.3"}, {ID: "CVE-2023-5752", resolvedInVersion: "23.3"}, + {ID: "CVE-2026-1703", resolvedInVersion: "26.0"}, }, - continuesToUpdate: false, + continuesToUpdate: true, }, "cpe:2.3:a:mozilla:firefox:93.0:*:*:*:*:windows:*:*": { includedCVEs: firefox93WindowsVulnerabilities,