From dcba58f9e34711c0169b5a50c75317fa2ea3945d Mon Sep 17 00:00:00 2001 From: nayaknishant Date: Mon, 9 May 2022 15:39:51 -0700 Subject: [PATCH] fix: added retries to flaky test --- samples/test/create-custom-job.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/test/create-custom-job.test.js b/samples/test/create-custom-job.test.js index 5bd73f90..ac87d2e9 100644 --- a/samples/test/create-custom-job.test.js +++ b/samples/test/create-custom-job.test.js @@ -43,7 +43,8 @@ function parseResponse(stdout) { let customJobId; -describe('AI platform create custom job', () => { +describe('AI platform create custom job', async function () { + this.retries(2); it('should create a new custom job', async () => { const stdout = execSync( `node ./create-custom-job.js ${customJobDisplayName} \