Skip to content

Commit a404eb2

Browse files
Fix test after file name change
1 parent 3bb28f9 commit a404eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudinary-android-test/src/main/java/com/cloudinary/test/UploaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ public void testUniqueFilename() throws Exception {
219219
fos.close();
220220

221221
JSONObject result = new JSONObject(cloudinary.uploader().upload(f, ObjectUtils.asMap("use_filename", true)));
222-
assertTrue(result.getString("public_id").matches("logo_[a-z0-9]{6}"));
222+
assertTrue(result.getString("public_id").matches("old_logo_[a-z0-9]{6}"));
223223
result = new JSONObject(cloudinary.uploader().upload(f, ObjectUtils.asMap("use_filename", true, "unique_filename", false)));
224-
assertEquals(result.getString("public_id"), "logo");
224+
assertEquals(result.getString("public_id"), "old_logo");
225225
}
226226

227227
public void testFaceCoordinates() throws Exception {

0 commit comments

Comments
 (0)