Skip to content

Commit 3df2f18

Browse files
author
Amir Tocker
committed
Use TRAVIS_JOB_ID to make test tags unique
1 parent 140bcfc commit 3df2f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api_spec.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe "api", ->
8080
else
8181
done()
8282

83-
SUFFIX = Math.floor(Math.random() * 99999)
83+
SUFFIX = process.env.TRAVIS_JOB_ID || Math.floor(Math.random() * 99999)
8484
PUBLIC_ID_PREFIX = "npm_api_test"
8585
PUBLIC_ID = PUBLIC_ID_PREFIX + SUFFIX
8686
PUBLIC_ID_1 = PUBLIC_ID_PREFIX + "_1_" + SUFFIX
@@ -250,7 +250,7 @@ describe "api", ->
250250

251251

252252
it "should allow get resource metadata", (done) ->
253-
@timeout helper.TIMEOUT_MEDIUM
253+
@timeout helper.TIMEOUT_LONG
254254
cloudinary.v2.uploader.upload IMAGE_FILE, tags: [TEST_TAG, @timestamp_tag], eager: [EXPLICIT_TRANSFORMATION], (error, result)->
255255
done(new Error error.message) if error?
256256
public_id = result.public_id

0 commit comments

Comments
 (0)