From 819dd333cdfb5e8df86c071fd29795cbc46f4c78 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Fri, 20 Dec 2024 13:25:56 +0100 Subject: [PATCH] Extend timeout --- e2e/node/e2e.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/e2e/node/e2e.test.ts b/e2e/node/e2e.test.ts index 115e21ab..bc080d72 100644 --- a/e2e/node/e2e.test.ts +++ b/e2e/node/e2e.test.ts @@ -1780,10 +1780,17 @@ describe(`End-to-end access grant tests for environment [${environment}] `, () = queryEndpoint: new URL("query", vcProvider), }, ); + const maxPages = 3; + let pageCount = 0; for await (const page of pages) { expect(page.items).not.toHaveLength(0); + pageCount += 1; + // Avoid iterating for too long when there are a lot of results. + if (pageCount === maxPages) { + break; + } } - }, 30_000); + }, 45_000); }, ); });