Skip to content

Commit 96533e8

Browse files
Add retry to integration tests (#396)
* Add retry to integration tests
1 parent 3f361c7 commit 96533e8

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

test/api_spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function findByAttr(elements, attr, value) {
146146

147147

148148
describe("api", function () {
149+
this.retries(3);
149150
var contextKey = `test-key${UNIQUE_JOB_SUFFIX_ID}`;
150151
before("Verify Configuration", function () {
151152
let config = cloudinary.config(true);

test/archivespec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ sharedExamples('archive', function () {
9090
});
9191

9292
describe("archive", function () {
93+
this.retries(3);
9394
includeContext('archive');
9495
describe("utils", function () {
9596
describe('.generate_zip_download_url', function () {

test/search_spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const SEARCH_TAG = 'npm_advanced_search_' + UNIQUE_JOB_SUFFIX_ID;
3232

3333

3434
describe("search_api", function () {
35+
this.retries(3);
3536
describe("unit", function () {
3637
it('should create empty json', function () {
3738
var query_hash = cloudinary.v2.search.instance().to_query();

test/uploader_spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const {
4444
require('jsdom-global')();
4545

4646
describe("uploader", function () {
47+
this.retries(3);
4748
before("Verify Configuration", function () {
4849
var config = cloudinary.config(true);
4950
if (!(config.api_key && config.api_secret)) {

0 commit comments

Comments
 (0)