mirror of https://github.com/apache/lucene.git
SOLR-12801: Harden InfixSuggestersTest#testShutdownDuringBuild.
This commit is contained in:
parent
874937aba8
commit
a25ddcd4f3
|
@ -122,7 +122,7 @@ public class InfixSuggestersTest extends SolrTestCaseJ4 {
|
||||||
try {
|
try {
|
||||||
LinkedHashMap<Class<? extends Throwable>, List<Class<? extends Throwable>>> expected = new LinkedHashMap<>();
|
LinkedHashMap<Class<? extends Throwable>, List<Class<? extends Throwable>>> expected = new LinkedHashMap<>();
|
||||||
expected.put(RuntimeException.class, Arrays.asList
|
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];
|
final Throwable[] outerException = new Throwable[1];
|
||||||
// Build the suggester in the background with a long dictionary
|
// Build the suggester in the background with a long dictionary
|
||||||
Future job = executor.submit(() -> outerException[0] = expectThrowsAnyOf(expected,
|
Future job = executor.submit(() -> outerException[0] = expectThrowsAnyOf(expected,
|
||||||
|
|
Loading…
Reference in New Issue