From cbe9f82202c481a98d0f455758e6741f6c13ddcc Mon Sep 17 00:00:00 2001 From: markrmiller Date: Sat, 1 Dec 2018 08:58:13 -0600 Subject: [PATCH] SOLR-12801: Don't possibly block forever in this test. --- .../solr/cloud/autoscaling/sim/TestSimDistributedQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java index ed9aac247af..c607e48c97b 100644 --- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java +++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java @@ -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());