Skip to content

Commit f459dea

Browse files
committed
Fix testUploadInvalidUrl test
1 parent f1f39e2 commit f459dea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ public void testDownloadArchive() throws Exception {
503503
@Test
504504
public void testUploadInvalidUrl() throws IOException {
505505
Map result = cloudinary.uploader().upload(REMOTE_TEST_IMAGE + "\n", ObjectUtils.asMap("return_error", true));
506-
assertEquals(result.get("http_code"), 404);
506+
Map error = (Map) result.get("error");
507+
assertEquals(error.get("http_code"), 404);
507508
}
508509

509510
}

0 commit comments

Comments
 (0)