Skip to content

Commit 2359689

Browse files
authored
fix(test): increase timeout for network-dependent purlExists tests (#15)
* 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. * fix(test): reduce timeout to 15s
1 parent debebf8 commit 2359689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/purl-edge-cases.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,13 +2221,13 @@ describe('Edge cases and additional coverage', () => {
22212221
const result = await purlExists(purl)
22222222
// Network call may succeed or fail, but it should not return "Unsupported type"
22232223
expect(result.error).not.toBe('Unsupported type: conda')
2224-
})
2224+
}, 15_000)
22252225

22262226
it('should dispatch docker type', async () => {
22272227
const purl = PackageURL.fromString('pkg:docker/nginx@latest')
22282228
const result = await purlExists(purl)
22292229
expect(result.error).not.toBe('Unsupported type: docker')
2230-
})
2230+
}, 15_000)
22312231
})
22322232

22332233
describe('UrlConverter edge cases', () => {

0 commit comments

Comments
 (0)