[DOCS] Fix cleaning up ML resources after tests
Original commit: elastic/x-pack-elasticsearch@615b89e02f8240c7c9b07b3ac1e374db8bd327a2
@@ -118,8 +118,8 @@ public class XDocsClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
}
@After
- public void cleanMlState() {
- new MlRestTestStateCleaner(logger, adminClient(), this);
+ public void cleanMlState() throws Exception {
+ new MlRestTestStateCleaner(logger, adminClient(), this).clearMlMetadata();
}
@Override
