Fixed failing unit test

This commit is contained in:
Monishkumar Gajendran 2021-10-05 10:15:33 -07:00
parent b5801edc1d
commit b72b9b01ca
3 changed files with 2 additions and 3 deletions

View file

@ -278,7 +278,6 @@ public class PrefetchRecordsPublisher implements RecordsPublisher {
// (Re-)Cancel if current thread also interrupted
executorService.shutdownNow();
}
executorService.shutdownNow();
started = false;
}

View file

@ -254,7 +254,7 @@ public class PrefetchRecordsPublisherIntegrationTest {
public void shutdown() {
getRecordsCache.shutdown();
sleep(100L);
verify(executorService).shutdownNow();
verify(executorService).shutdown();
// verify(getRecordsRetrievalStrategy).shutdown();
}

View file

@ -770,7 +770,7 @@ public class PrefetchRecordsPublisherTest {
@After
public void shutdown() {
getRecordsCache.shutdown();
verify(executorService).shutdownNow();
verify(executorService).shutdown();
}
private void sleep(long millis) {