Skip to content

Commit 33f1060

Browse files
author
Amir Tocker
committed
Remove API limits test
1 parent 388b200 commit 33f1060

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -517,21 +517,6 @@ public void testUpdateCustomCoordinates() throws IOException, Exception {
517517
}
518518
}
519519

520-
@Test
521-
public void testApiLimits() throws Exception {
522-
// should support reporting the current API limits found in the response
523-
// header
524-
ApiResponse result1 = api.transformations(ObjectUtils.emptyMap());
525-
ApiResponse result2 = api.transformations(ObjectUtils.emptyMap());
526-
assertNotNull(result1.apiRateLimit());
527-
assertNotNull(result2.apiRateLimit());
528-
assertEquals(result1.apiRateLimit().getRemaining() - 1, result2.apiRateLimit().getRemaining());
529-
assertTrue(result2.apiRateLimit().getLimit() > result2.apiRateLimit().getRemaining());
530-
assertEquals(result1.apiRateLimit().getLimit(), result2.apiRateLimit().getLimit());
531-
assertEquals(result1.apiRateLimit().getReset(), result2.apiRateLimit().getReset());
532-
assertTrue(result2.apiRateLimit().getReset().after(new java.util.Date()));
533-
}
534-
535520
@Test
536521
public void testListUploadPresets() throws Exception {
537522
// should allow creating and listing upload_presets

0 commit comments

Comments
 (0)