Skip to content

Commit

Permalink
Fixed build erros
Browse files Browse the repository at this point in the history
Signed-off-by: Kondaka <krishkdk@amazon.com>
  • Loading branch information
kkondaka committed Sep 15, 2024
1 parent d402bfe commit 785b782
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void test_writeSingleRecordToBufferWithAcknowledgementSet() throws Exception {
pluginMetrics);
recordBufferWriter.writeToBuffer(acknowledgementSet, List.of(event));
verify(bufferAccumulator).add(recordArgumentCaptor.capture());
verify(acknowledgementSet).add(event);
verify(acknowledgementSet).add(event.getEventHandle());
assertThat(recordArgumentCaptor.getValue().getData(), equalTo(event));

verify(bufferAccumulator).flush();
Expand All @@ -129,10 +129,10 @@ void test_writeSingleRecordFlushException() throws Exception {

recordBufferWriter.writeToBuffer(acknowledgementSet, List.of(event));
verify(bufferAccumulator).add(recordArgumentCaptor.capture());
verify(acknowledgementSet).add(event);
verify(acknowledgementSet).add(event.getEventHandle());
assertThat(recordArgumentCaptor.getValue().getData(), equalTo(event));

verify(bufferAccumulator).flush();
verify(exportRecordErrors).increment(1);
}
}
}

0 comments on commit 785b782

Please sign in to comment.