SOLR-12801: Harden InfixSuggestersTest#testShutdownDuringBuild.

This commit is contained in:
markrmiller 2018-12-11 06:35:19 -06:00
parent 874937aba8
commit a25ddcd4f3
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class InfixSuggestersTest extends SolrTestCaseJ4 {
try {
LinkedHashMap<Class<? extends Throwable>, List<Class<? extends Throwable>>> expected = new LinkedHashMap<>();
expected.put(RuntimeException.class, Arrays.asList
(SolrCoreState.CoreIsClosedException.class, SolrException.class, IllegalStateException.class));
(SolrCoreState.CoreIsClosedException.class, SolrException.class, IllegalStateException.class, NullPointerException.class));
final Throwable[] outerException = new Throwable[1];
// Build the suggester in the background with a long dictionary
Future job = executor.submit(() -> outerException[0] = expectThrowsAnyOf(expected,