@@ -3392,12 +3392,7 @@ public void mockPullBulkDocs(MockDispatcher.ServerType serverType) throws Except
33923392 if (iterator .hasNext ()) {
33933393 // the bulk docs requests except for the last one should have max number of docs
33943394 // relax this a bit, so that it at least has to have greater than or equal to half max number of docs
3395-
3396- // TODO: Review following check
3397- // https://github.com/couchbase/couchbase-lite-java-core/issues/645
3398- // Depends on test platform, each request's doc size is not guaranteed.
3399- // assertTrue(docs.size() >= (ReplicationInternal.INBOX_CAPACITY / 2));
3400-
3395+ assertTrue (docs .size () >= (ReplicationInternal .INBOX_CAPACITY / 2 ));
34013396 if (docs .size () != ReplicationInternal .INBOX_CAPACITY ) {
34023397 Log .w (TAG , "docs.size() %d != ReplicationInternal.INBOX_CAPACITY %d" , docs .size (), ReplicationInternal .INBOX_CAPACITY );
34033398 }
@@ -3406,15 +3401,8 @@ public void mockPullBulkDocs(MockDispatcher.ServerType serverType) throws Except
34063401
34073402 // should not be any requests for individual docs
34083403 for (MockDocumentGet .MockDocument mockDocument : mockDocs ) {
3409- MockDocumentGet mockDocumentGet = new MockDocumentGet (mockDocument );
34103404 BlockingQueue <RecordedRequest > requestsForDoc = dispatcher .getRequestQueueSnapshot (mockDocument .getDocPathRegex ());
3411-
3412- // TODO: Fix following check on non-Android environment
3413- // https://github.com/couchbase/couchbase-lite-java-core/issues/645
3414- // Depends on test environment, single doc request could be executed on non-android platforms
3415- if (System .getProperty ("java.vm.name" ).equalsIgnoreCase ("Dalvik" )) {
3416- assertTrue (requestsForDoc == null || requestsForDoc .isEmpty ());
3417- }
3405+ assertTrue (requestsForDoc == null || requestsForDoc .isEmpty ());
34183406 }
34193407
34203408 server .shutdown ();
0 commit comments