Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,12 @@ public void testRunStateChangePolicyWithAsyncActionNextStep() throws Exception {
ClusterState before = clusterService.state();
CountDownLatch latch = new CountDownLatch(1);
step.setLatch(latch);
CountDownLatch asyncLatch = new CountDownLatch(1);
nextStep.setLatch(asyncLatch);
runner.runPolicyAfterStateChange(policyName, indexMetaData);

// Wait for the cluster state action step
awaitLatch(latch, 5, TimeUnit.SECONDS);

CountDownLatch asyncLatch = new CountDownLatch(1);
nextStep.setLatch(asyncLatch);

// Wait for the async action step
awaitLatch(asyncLatch, 5, TimeUnit.SECONDS);
ClusterState after = clusterService.state();
Expand Down