From a1657616bb596702aee8c8bac582ef1f86f55d7d Mon Sep 17 00:00:00 2001 From: markrmiller Date: Mon, 10 Dec 2018 08:46:54 -0600 Subject: [PATCH] SOLR-12923: Harden TestSimTriggerIntegration. --- .../solr/cloud/autoscaling/sim/TestSimTriggerIntegration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimTriggerIntegration.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimTriggerIntegration.java index c4ec12227e8..0227cda07b6 100644 --- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimTriggerIntegration.java +++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimTriggerIntegration.java @@ -210,7 +210,7 @@ public class TestSimTriggerIntegration extends SimSolrCloudTestCase { String newNode = cluster.simAddNode(); - if (!triggerFiredLatch.await(220000 / SPEED, TimeUnit.MILLISECONDS)) { + if (!triggerFiredLatch.await(320000 / SPEED, TimeUnit.MILLISECONDS)) { fail("Both triggers should have fired by now"); } @@ -438,7 +438,7 @@ public class TestSimTriggerIntegration extends SimSolrCloudTestCase { } String newNode = cluster.simAddNode(); - boolean await = triggerFiredLatch.await(60000 / SPEED, TimeUnit.MILLISECONDS); + boolean await = triggerFiredLatch.await(90000 / SPEED, TimeUnit.MILLISECONDS); assertTrue("The trigger did not fire at all", await); assertTrue(triggerFired.get()); TriggerEvent nodeAddedEvent = events.iterator().next();