Skip to content

Commit f367787

Browse files
committed
debug: schedule events manually
1 parent 3245132 commit f367787

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/io/weaviate/client6/v1/api/collections/batch/BatchContextTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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. */

0 commit comments

Comments
 (0)