Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Cloudant getClientWithTimeouts(Duration callTimeout, Duration readTimeout) {
/**
* Initially an alternating batch supplier, but when that is exhausted continues
* to answer with empty results.
*
*
* @param batches
* @return
*/
Expand Down Expand Up @@ -378,7 +378,7 @@ void testStartTerminalErrors(MockError error) {
});
Assert.assertEquals(e.getMessage(), error.getException().getMessage(), "Should receive the expected error message.");
}

/**
* Checks that a LISTEN mode errors for all transient errors when not suppressing.
*/
Expand All @@ -400,7 +400,7 @@ void testStartTransientErrorsWithSuppressionDurationErrorTermination(MockError e
Cloudant mockClient = new ChangesRequestMockClient(() -> new MockInstruction<ChangesResult>(error));
ChangesFollower testFollower = new ChangesFollower(mockClient, TestOptions.MINIMUM.getOptions(), Duration.ofMillis(100L));
RuntimeException e = Assert.expectThrows(error.getExceptionClass(), () -> {
testFollowerOnThread(testFollower, ChangesFollower.Mode.LISTEN, true, Duration.ofSeconds(1L));
testFollowerOnThread(testFollower, ChangesFollower.Mode.LISTEN, true, Duration.ofSeconds(4L));
});
Assert.assertEquals(e.getMessage(), error.getException().getMessage(), "Should receive the expected error message.");
}
Expand Down
Loading