File tree Expand file tree Collapse file tree
src/test/java/io/weaviate/client6/v1/api/collections/batch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ public void test_sendOneBatch() throws Exception {
187187 Assertions .assertThat (tasks )
188188 .extracting (TaskHandle ::isAcked ).allMatch (CompletableFuture ::isDone );
189189
190+ out .pendingEvents .add (new Event .Results (received , Collections .emptyMap ()));
190191 out .beforeEof (new Event .Results (received , Collections .emptyMap ()));
191192
192193 // Since MockServer runs in the same thread as this test,
@@ -506,7 +507,7 @@ CompletableFuture<Void> emitEvent(Event event) {
506507
507508 log .debug ("emit event {}" , event );
508509 return CompletableFuture .runAsync (() -> stream .onNext (event ), eventThread )
509- .thenAccept ( r -> log .debug ("ran {}" , r ));
510+ .thenRun (() -> log .debug ("ran {}" , event ));
510511 }
511512
512513 /** Terminate the server half of the stream abruptly. */
You can’t perform that action at this time.
0 commit comments