ShutdownTask bug fix
This commit is contained in:
parent
bd6a7d8b90
commit
b636edd007
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ public class ShutdownTaskTest {
|
||||||
|
|
||||||
final TaskResult result = task.call();
|
final TaskResult result = task.call();
|
||||||
assertNotNull(result.getException());
|
assertNotNull(result.getException());
|
||||||
assertTrue(result.getException() instanceof KinesisClientLibIOException);
|
assertTrue(result.getException() instanceof IllegalStateException);
|
||||||
verify(recordsPublisher, never()).shutdown();
|
verify(recordsPublisher, never()).shutdown();
|
||||||
verify(shardRecordProcessor, never()).shardEnded(ShardEndedInput.builder().checkpointer(recordProcessorCheckpointer).build());
|
verify(shardRecordProcessor, never()).shardEnded(ShardEndedInput.builder().checkpointer(recordProcessorCheckpointer).build());
|
||||||
verify(shardRecordProcessor, never()).leaseLost(LeaseLostInput.builder().build());
|
verify(shardRecordProcessor, never()).leaseLost(LeaseLostInput.builder().build());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue