Skip to content

Commit bcde370

Browse files
nitzanjAmir Tocker
authored andcommitted
Adapt another test to parallel testing and increase search test sleep time.
1 parent ee887f5 commit bcde370

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractApiTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,10 @@ public void test11TagsPrefix() throws Exception {
375375
@Test
376376
public void test12Transformations() throws Exception {
377377
// should allow listing transformations
378+
final Transformation listTest = new Transformation().width(25).crop("scale").overlay(new TextLayer().text(SUFFIX + "_testListTransformations").fontFamily("Arial").fontSize(60));
379+
preloadResource(ObjectUtils.asMap("tags", UPLOAD_TAGS, "eager", Collections.singletonList(listTest)));
378380
Map result = api.transformations(ObjectUtils.emptyMap());
379-
Map transformation = findByAttr((List<Map>) result.get("transformations"), "name", EXPLICIT_TRANSFORMATION_NAME);
381+
Map transformation = findByAttr((List<Map>) result.get("transformations"), "name", listTest.generate());
380382

381383
assertNotNull(transformation);
382384
assertTrue((Boolean) transformation.get("used"));

cloudinary-test-common/src/main/java/com/cloudinary/test/AbstractSearchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void setUpClass() throws Exception {
3333
options = ObjectUtils.asMap("public_id", SEARCH_TEST_2, "tags", UPLOAD_TAGS, "context", "stage=validated");
3434
cloudinary.uploader().upload(SRC_TEST_IMAGE, options);
3535
try {
36-
Thread.sleep(3000); //wait for search indexing
36+
Thread.sleep(5000); //wait for search indexing
3737
} catch (InterruptedException e) {
3838
e.printStackTrace();
3939
}

0 commit comments

Comments
 (0)