From ffc9a3f972802d8483d1f0c02a685ea8f1500998 Mon Sep 17 00:00:00 2001 From: nayaknishant Date: Tue, 10 May 2022 15:26:31 -0700 Subject: [PATCH] fix: added retries to flaky test (#299) --- 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} \