From ea0bff5eeb0534f0ca820d11bbe90c553af3cdba Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 30 Mar 2026 13:26:38 -0400 Subject: [PATCH 1/2] fix(test): increase timeout for network-dependent purlExists tests The conda and docker purlExists tests make real HTTP requests to external registries. The conda test was timing out on CI at the default 10s limit. Increase timeout to 30s for both network-calling tests. --- test/purl-edge-cases.test.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/purl-edge-cases.test.mts b/test/purl-edge-cases.test.mts index bb9d2fe..361437d 100644 --- a/test/purl-edge-cases.test.mts +++ b/test/purl-edge-cases.test.mts @@ -2221,13 +2221,13 @@ describe('Edge cases and additional coverage', () => { const result = await purlExists(purl) // Network call may succeed or fail, but it should not return "Unsupported type" expect(result.error).not.toBe('Unsupported type: conda') - }) + }, 30_000) it('should dispatch docker type', async () => { const purl = PackageURL.fromString('pkg:docker/nginx@latest') const result = await purlExists(purl) expect(result.error).not.toBe('Unsupported type: docker') - }) + }, 30_000) }) describe('UrlConverter edge cases', () => { From f31072b5dce3833acad7c380bef901d64bc186ad Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 30 Mar 2026 13:28:23 -0400 Subject: [PATCH 2/2] fix(test): reduce timeout to 15s --- test/purl-edge-cases.test.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/purl-edge-cases.test.mts b/test/purl-edge-cases.test.mts index 361437d..c440117 100644 --- a/test/purl-edge-cases.test.mts +++ b/test/purl-edge-cases.test.mts @@ -2221,13 +2221,13 @@ describe('Edge cases and additional coverage', () => { const result = await purlExists(purl) // Network call may succeed or fail, but it should not return "Unsupported type" expect(result.error).not.toBe('Unsupported type: conda') - }, 30_000) + }, 15_000) it('should dispatch docker type', async () => { const purl = PackageURL.fromString('pkg:docker/nginx@latest') const result = await purlExists(purl) expect(result.error).not.toBe('Unsupported type: docker') - }, 30_000) + }, 15_000) }) describe('UrlConverter edge cases', () => {