From 1642fb42d8d322645540e2caaf8eb85486959dd1 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 6 Nov 2024 16:54:54 +0530 Subject: [PATCH] feat: resolved test failing due to timeout --- .../e2e-test/routes/v1/secret-replication.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/e2e-test/routes/v1/secret-replication.spec.ts b/backend/e2e-test/routes/v1/secret-replication.spec.ts index f762165a2..b56a8f9a0 100644 --- a/backend/e2e-test/routes/v1/secret-replication.spec.ts +++ b/backend/e2e-test/routes/v1/secret-replication.spec.ts @@ -118,9 +118,9 @@ describe.each([{ secretPath: "/" }, { secretPath: "/deep" }])( value: "stage-value" }); - // wait for 5 second for replication to finish + // wait for 10 second for replication to finish await new Promise((resolve) => { - setTimeout(resolve, 5000); // time to breathe for db + setTimeout(resolve, 10000); // time to breathe for db }); const secret = await getSecretByNameV2({ @@ -173,9 +173,9 @@ describe.each([{ secretPath: "/" }, { secretPath: "/deep" }])( value: "prod-value" }); - // wait for 5 second for replication to finish + // wait for 10 second for replication to finish await new Promise((resolve) => { - setTimeout(resolve, 5000); // time to breathe for db + setTimeout(resolve, 10000); // time to breathe for db }); const secret = await getSecretByNameV2({ @@ -343,9 +343,9 @@ describe.each([{ path: "/" }, { path: "/deep" }])( value: "prod-value" }); - // wait for 5 second for replication to finish + // wait for 10 second for replication to finish await new Promise((resolve) => { - setTimeout(resolve, 5000); // time to breathe for db + setTimeout(resolve, 10000); // time to breathe for db }); const secret = await getSecretByNameV2({