From 8793341d50ec9f62af32b24971976f2e2c9f0d02 Mon Sep 17 00:00:00 2001 From: RTLcoil Date: Fri, 14 Jan 2022 16:33:16 +0300 Subject: [PATCH] Stabilize OCR tests --- test/integration/api/admin/api_spec.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/integration/api/admin/api_spec.js b/test/integration/api/admin/api_spec.js index 16c51060..df7f2d6b 100644 --- a/test/integration/api/admin/api_spec.js +++ b/test/integration/api/admin/api_spec.js @@ -898,10 +898,13 @@ describe("api", function () { }); describe(":ocr", function () { before(async function () { - await uploadImage({ - public_id: PUBLIC_ID_OCR_1, - tags: [TEST_TAG] - }) + this.timeout(TIMEOUT.MEDIUM); + await retry(async function() { + await uploadImage({ + public_id: PUBLIC_ID_OCR_1, + tags: [TEST_TAG] + }); + }); }); it("should support requesting ocr when updating", async function () { if (!shouldTestAddOn(ADDON_OCR)) {