From c15ff28e1577d4a96c3e5438f24fd927206c9dca Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:58:24 -0700 Subject: [PATCH 1/2] fix: increase e2e test memory --- bin/app.ts | 2 +- test/mocha/e2e/quote.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/app.ts b/bin/app.ts index acbf043c2..3d340f95e 100644 --- a/bin/app.ts +++ b/bin/app.ts @@ -353,7 +353,7 @@ export class RoutingAPIPipeline extends Stack { `echo "UNICORN_SECRET=${unicornSecret}" >> .env`, 'npm install', 'npm run build', - 'set NODE_OPTIONS=--max-old-space-size=4096 && npm run test:e2e', + 'set NODE_OPTIONS=--max-old-space-size=8192 && npm run test:e2e', ], }) diff --git a/test/mocha/e2e/quote.test.ts b/test/mocha/e2e/quote.test.ts index 660ec36eb..9bc9641e9 100644 --- a/test/mocha/e2e/quote.test.ts +++ b/test/mocha/e2e/quote.test.ts @@ -308,7 +308,7 @@ describe('quote', function () { } before(async function () { - this.timeout(40000) + this.timeout(400000) ;[alice] = await ethers.getSigners() // Make a dummy call to the API to get a block number to fork from. From 1476de99622d0805160ed2dac91bdddf1b78f0cf Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:59:29 -0700 Subject: [PATCH 2/2] test timeout 400000 --- test/mocha/e2e/quote.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocha/e2e/quote.test.ts b/test/mocha/e2e/quote.test.ts index 9bc9641e9..660ec36eb 100644 --- a/test/mocha/e2e/quote.test.ts +++ b/test/mocha/e2e/quote.test.ts @@ -308,7 +308,7 @@ describe('quote', function () { } before(async function () { - this.timeout(400000) + this.timeout(40000) ;[alice] = await ethers.getSigners() // Make a dummy call to the API to get a block number to fork from.