[Test] Fix slow rollup job task test

Incorrect latch caused this test to run slowly (until the await
finished), and could probably cause failure due to incorrect ordering

Original commit: elastic/x-pack-elasticsearch@ebeb8655da
This commit is contained in:
Zachary Tong 2018-02-24 20:04:33 +00:00
parent eb82e3cf61
commit 3b474d8868
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ public class RollupJobTaskTests extends ESTestCase {
@Override
public void onResponse(StopRollupJobAction.Response response) {
assertTrue(response.isStopped());
latch.countDown();
latch2.countDown();
}
@Override