[TEST] slightly changed workaround cleanup for ml integ tests.

Original commit: elastic/x-pack-elasticsearch@3eba1e76ab
This commit is contained in:
Martijn van Groningen 2017-02-16 14:28:06 +01:00
parent 55b2111bdf
commit 3572cff0a8
2 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public class TooManyJobsIT extends BaseMlIntegTestCase {
assertEquals(JobState.OPENED, task.getStatus()); assertEquals(JobState.OPENED, task.getStatus());
OpenJobAction.Request openJobRequest = (OpenJobAction.Request) task.getRequest(); OpenJobAction.Request openJobRequest = (OpenJobAction.Request) task.getRequest();
assertEquals("1", openJobRequest.getJobId()); assertEquals("1", openJobRequest.getJobId());
cleanupWorkaround(1);
} }
public void testSingleNode() throws Exception { public void testSingleNode() throws Exception {

View File

@ -118,6 +118,8 @@ public abstract class BaseMlIntegTestCase extends SecurityIntegTestCase {
internalCluster().stopRandomDataNode(); internalCluster().stopRandomDataNode();
} }
internalCluster().startNode(Settings.builder().put(XPackSettings.MACHINE_LEARNING_ENABLED.getKey(), false)); internalCluster().startNode(Settings.builder().put(XPackSettings.MACHINE_LEARNING_ENABLED.getKey(), false));
ensureStableCluster(1);
cluster().wipe(Collections.emptySet());
} }
private void deleteAllDatafeeds(Client client) throws Exception { private void deleteAllDatafeeds(Client client) throws Exception {