File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
cloudinary-test-common/src/main/java/com/cloudinary/test Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33import com .cloudinary .Api ;
44import com .cloudinary .Cloudinary ;
55import com .cloudinary .utils .ObjectUtils ;
6+ import com .cloudinary .utils .StringUtils ;
67import sun .reflect .generics .reflectiveObjects .NotImplementedException ;
78
89import java .io .IOException ;
@@ -13,7 +14,7 @@ public class MockableTest {
1314
1415 public static final String SRC_TEST_IMAGE = "../cloudinary-test-common/src/main/resources/old_logo.png" ;
1516 public static final String REMOTE_TEST_IMAGE = "http://cloudinary.com/images/old_logo.png" ;
16- protected static final String SUFFIX = String .valueOf (new Random ().nextInt (99999 ));
17+ protected static String SUFFIX = StringUtils . isNotBlank ( System . getenv ( "TRAVIS_JOB_ID" )) ? System . getenv ( "TRAVIS_JOB_ID" ) : String .valueOf (new Random ().nextInt (99999 ));
1718 protected static final String SDK_TEST_TAG = "cloudinary_java_test_" + SUFFIX ;
1819 protected static final String uniqueTag = SDK_TEST_TAG + (new java .util .Date ().getTime ());
1920 protected Cloudinary cloudinary ;
You can’t perform that action at this time.
0 commit comments