Skip to content

Commit d06955c

Browse files
committed
add missing test line
1 parent e4edead commit d06955c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AndroidSDKTests/src/test/java/com/leanplum/internal/RequestTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public void testJsonEncodeUnsentRequestsWithExceptionLargeNumbers() throws NoSuc
222222
for (int i = 0;i < 4999; i++) {
223223
new Request("POST", Constants.Methods.START, null).sendEventually();
224224
}
225-
// Expectation: 10000 requests returned.
225+
// Expectation: 5000 requests returned.
226226
requestsWithEncoding = request.getRequestsWithEncodedStringStoredRequests(1.0);
227227

228228
assertNotNull(requestsWithEncoding.unsentRequests);
@@ -244,8 +244,9 @@ public void testJsonEncodeUnsentRequestsWithExceptionLargeNumbers() throws NoSuc
244244
// Expectation: 1250 requests returned.
245245
when(request.getUnsentRequests(0.5)).thenThrow(OutOfMemoryError.class);
246246
requestsWithEncoding = request.getRequestsWithEncodedStringStoredRequests(1.0);
247+
assertEquals(1200, requestsWithEncoding.unsentRequests.size());
247248

248-
// Throw OOM on >0 requests
249+
// Throw OOM on > 0 requests
249250
// Expectation: 0 requests returned but no crash
250251

251252
when(request.getUnsentRequests(not(eq(0)))).thenThrow(OutOfMemoryError.class);

0 commit comments

Comments
 (0)