Skip to content

Commit

Permalink
Fixed failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Monishkumar Gajendran committed Oct 5, 2021
1 parent b5801ed commit b72b9b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ public void shutdown() {
// (Re-)Cancel if current thread also interrupted
executorService.shutdownNow();
}
executorService.shutdownNow();
started = false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private RecordsRetrieved evictPublishedEvent(PrefetchRecordsPublisher publisher,
public void shutdown() {
getRecordsCache.shutdown();
sleep(100L);
verify(executorService).shutdownNow();
verify(executorService).shutdown();
// verify(getRecordsRetrievalStrategy).shutdown();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ public void onNext(RecordsRetrieved recordsRetrieved) {
@After
public void shutdown() {
getRecordsCache.shutdown();
verify(executorService).shutdownNow();
verify(executorService).shutdown();
}

private void sleep(long millis) {
Expand Down

0 comments on commit b72b9b0

Please sign in to comment.