Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 1, 2023
1 parent 249220b commit c454aff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ public void testConfigValueAreUsed() throws Exception {

BulkProcessor2.Builder baseBuilder = spy(BulkProcessor2.builder(mock(), new BulkProcessorFactory.BulkProcessorListener(), mock()));
BulkProcessorFactory factory = new BulkProcessorFactory(config, () -> baseBuilder);

assertThat(factory.create(), instanceOf(BulkProcessor2.class));
try (BulkProcessor2 bulkProcessor = factory.create()) {
assertThat(bulkProcessor, instanceOf(BulkProcessor2.class));
}

verify(baseBuilder).setFlushInterval(eq(flushDelay));
verify(baseBuilder).setBulkActions(eq(maxBulkActions));
Expand Down

0 comments on commit c454aff

Please sign in to comment.