Skip to content

Commit

Permalink
Fix unit tests that expected IllegalStateException thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
zachjhum committed Feb 19, 2024
1 parent 62061a2 commit c05e67e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ record = Record.builder().data(createByteBufferWithSize(1024)).build();
assertTrue(spyQueue.size() <= MAX_SIZE);
}

@Test(expected = IllegalStateException.class)
@Test
public void testGetNextRecordsWithoutStarting() {
verify(executorService, never()).execute(any());
getRecordsCache.drainQueueForRequests();
}

@Test(expected = IllegalStateException.class)
@Test
public void testCallAfterShutdown() {
when(executorService.isShutdown()).thenReturn(true);
getRecordsCache.drainQueueForRequests();
Expand Down

0 comments on commit c05e67e

Please sign in to comment.