You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/07/05 01:52:48 UTC
[3/6] lucene-solr:feature/autoscaling: SOLR-10515: Assert that the
latch was indeed counted down
SOLR-10515: Assert that the latch was indeed counted down
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c6bfb608
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c6bfb608
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c6bfb608
Branch: refs/heads/feature/autoscaling
Commit: c6bfb60815e28f395075cd7ed1b613cdbb167e1b
Parents: 2bd9347
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Wed Jul 5 06:30:47 2017 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Wed Jul 5 06:30:47 2017 +0530
----------------------------------------------------------------------
.../org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c6bfb608/solr/core/src/test/org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java
index be53418..0ceb875 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/TriggerIntegrationTest.java
@@ -696,10 +696,12 @@ public class TriggerIntegrationTest extends SolrCloudTestCase {
assertTrue("action wasn't interrupted", await);
// it should fire again from enqueued event
await = actionStarted.await(60, TimeUnit.SECONDS);
+ assertTrue("action wasn't started", await);
TriggerEvent replayedEvent = events.iterator().next();
assertTrue(replayedEvent.getProperty(TriggerEventQueue.ENQUEUE_TIME) != null);
assertTrue(events + "\n" + replayedEvent.toString(), replayedEvent.getProperty(TriggerEventQueue.DEQUEUE_TIME) != null);
await = actionCompleted.await(10, TimeUnit.SECONDS);
+ assertTrue("action wasn't completed", await);
assertTrue(triggerFired.get());
}