Skip to content

Commit ca27bbd

Browse files
authored
Stabilize OCR tests (#533)
1 parent 3bc3959 commit ca27bbd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/integration/api/admin/api_spec.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,13 @@ describe("api", function () {
898898
});
899899
describe(":ocr", function () {
900900
before(async function () {
901-
await uploadImage({
902-
public_id: PUBLIC_ID_OCR_1,
903-
tags: [TEST_TAG]
904-
})
901+
this.timeout(TIMEOUT.MEDIUM);
902+
await retry(async function() {
903+
await uploadImage({
904+
public_id: PUBLIC_ID_OCR_1,
905+
tags: [TEST_TAG]
906+
});
907+
});
905908
});
906909
it("should support requesting ocr when updating", async function () {
907910
if (!shouldTestAddOn(ADDON_OCR)) {

0 commit comments

Comments
 (0)