mirror of https://github.com/apache/lucene.git
SOLR-12801: Don't possibly block forever in this test.
This commit is contained in:
parent
755044b58f
commit
cbe9f82202
|
@ -71,7 +71,7 @@ public class TestSimDistributedQueue extends SolrTestCaseJ4 {
|
|||
|
||||
// should block until the background thread makes the offer
|
||||
(new QueueChangerThread(dq, 1000)).start();
|
||||
assertNotNull(dq.peek(true));
|
||||
assertNotNull(dq.peek(15000));
|
||||
assertNotNull(dq.remove());
|
||||
assertNull(dq.poll());
|
||||
|
||||
|
|
Loading…
Reference in New Issue