SOLR-12801: Don't possibly block forever in this test in another spot.

This commit is contained in:
markrmiller 2018-12-01 12:54:56 -06:00
parent b5a9cca168
commit b294d8460f
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class TestSimDistributedQueue extends SolrTestCaseJ4 {
assertNull(dq.peek(100)); assertNull(dq.peek(100));
// Rerun the earlier test make sure updates are still seen, post reconnection. // Rerun the earlier test make sure updates are still seen, post reconnection.
future = executor.submit(() -> new String(dq.peek(true), UTF8)); future = executor.submit(() -> new String(dq.peek(15000), UTF8));
try { try {
future.get(1000, TimeUnit.MILLISECONDS); future.get(1000, TimeUnit.MILLISECONDS);
fail("TimeoutException expected"); fail("TimeoutException expected");