File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
AndroidSDKTests/src/test/java/com/leanplum/internal Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments