Increase advisory lifecycle test timeout to 300s for transport retries

The advisory source API tests go through the Valkey transport with
withRetry (3 attempts). With the 55s transport timeout, worst case
is 3 × 55s = 165s, exceeding the default 120s test timeout.

Set advisory lifecycle describe block to 300s via beforeEach to
give enough headroom for all retry attempts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-04-02 18:13:35 +03:00
parent 42252f3b2f
commit 079f7b8010

View File

@@ -335,6 +335,9 @@ test.describe('Integration Services — Advisory Sources', () => {
// ---------------------------------------------------------------------------
test.describe('Integration Services — Advisory Source Sync Lifecycle', () => {
// Advisory endpoints go through Valkey transport which may need retries.
// Give enough time for 3 retry attempts with 55s transport timeout each.
test.beforeEach(async ({}, testInfo) => { testInfo.setTimeout(300_000); });
test('GET /catalog returns full source catalog with metadata', async ({ apiRequest }) => {
const resp = await withRetry(() => apiRequest.get('/api/v1/advisory-sources/catalog'));