From 1fe1610d9e32a515380a584a7442ad16f55875b8 Mon Sep 17 00:00:00 2001 From: Thada Wangthammang Date: Fri, 17 May 2024 08:40:50 +0700 Subject: [PATCH] fix(github-actions): health check on local e2e --- infra/e2e-local/e2e-local.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/e2e-local/e2e-local.test.ts b/infra/e2e-local/e2e-local.test.ts index 62f2448..ccb7b35 100644 --- a/infra/e2e-local/e2e-local.test.ts +++ b/infra/e2e-local/e2e-local.test.ts @@ -23,7 +23,7 @@ function waitForServer(url: string) { const message = error instanceof Error ? error.message : error; console.error(`Server not ready: ${url} (Message: ${message})`); } - }, 1000); + }, 5000); }); } @@ -69,7 +69,7 @@ describe('e2e-local', () => { process.exit(1); }); // Wait for the server to be ready - await waitForServer(new URL(HEALTH_PATH, LOCAL_URL).toString()); + await waitForServer(LOCAL_URL); }); afterAll(async () => {