Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-8.1.0] Migrate StreamProcessor test #10586

Merged
merged 6 commits into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -48,7 +48,7 @@ void shouldMarkUnhealthyWhenLoopInErrorHandling() {
// given
streamProcessor = streamPlatform.startStreamProcessor();

final var mockProcessor = streamPlatform.getDefaultRecordProcessor();
final var mockProcessor = streamPlatform.getDefaultMockedRecordProcessor();
when(mockProcessor.process(any(), any())).thenThrow(new RuntimeException("expected"));
when(mockProcessor.onProcessingError(any(), any(), any()))
.thenThrow(new RuntimeException("expected"));
Expand All @@ -70,7 +70,7 @@ void shouldBecomeHealthyWhenErrorIsResolved() {
streamProcessor = streamPlatform.startStreamProcessor();
final var shouldFail = new AtomicBoolean(true);

final var mockProcessor = streamPlatform.getDefaultRecordProcessor();
final var mockProcessor = streamPlatform.getDefaultMockedRecordProcessor();
when(mockProcessor.process(any(), any())).thenThrow(new RuntimeException("expected"));
when(mockProcessor.onProcessingError(any(), any(), any()))
.thenAnswer(
Expand Down