Skip to content

Commit bfed80a

Browse files
committed
Test reliability fixes
1 parent d04f08c commit bfed80a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/component-tests/apiGateway-tests/get-letter-pdf.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test.describe("API Gateway Tests to Verify Get Letter PDF Endpoint", () => {
5454
const expiresSeconds = Number(expiresParam);
5555
expect(expiresSeconds).toBe(60);
5656

57-
const waitMs = Math.max(expiresSeconds * 1000 + 2000, 0);
57+
const waitMs = Math.max(expiresSeconds * 1000 + 5000, 0);
5858
await new Promise((resolve) => {
5959
setTimeout(resolve, waitMs);
6060
});

tests/helpers/poll-for-letters-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function pollForLetterStatus(
1212
const headers = createValidRequestHeaders(supplierId);
1313
let statusCode = 0;
1414
let letterStatus: string | undefined;
15-
const RETRY_DELAY_MS = 10_000;
15+
const RETRY_DELAY_MS = 15_000;
1616
const MAX_ATTEMPTS = 6;
1717

1818
for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {

0 commit comments

Comments
 (0)