From 9e4cbfa06d877cac622a2e51358b269218a24c47 Mon Sep 17 00:00:00 2001 From: Patrick Tolosa Date: Sun, 5 Jul 2020 17:54:08 +0300 Subject: [PATCH] Increase wait time for image upload for search api tests --- test/integration/api/search/search_spec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/integration/api/search/search_spec.js b/test/integration/api/search/search_spec.js index e0edf77f..264d0c47 100644 --- a/test/integration/api/search/search_spec.js +++ b/test/integration/api/search/search_spec.js @@ -124,14 +124,13 @@ describe("search_api", function () { SEARCH_TAG], context: "stage=validated" }) - ]).delay(3000); // wait for the server to update + ]).delay(10000) }); + after(function () { if (!cloudinary.config().keep_test_products) { let config = cloudinary.config(); - if (!(config.api_key && config.api_secret)) { - expect().fail("Missing key and secret. Please set CLOUDINARY_URL."); - } + cloudinary.v2.api.delete_resources_by_tag(SEARCH_TAG); } });