Skip to content

Commit

Permalink
[ML] Functional tests - explicitly delete jobs after setupModule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Jun 22, 2021
1 parent 3860486 commit 5adf7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/test/api_integration/apis/ml/modules/setup_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ export default ({ getService }: FtrProviderContext) => {
for (const dashboard of testData.expected.dashboards) {
await ml.testResources.deleteDashboardById(dashboard);
}
for (const job of testData.expected.jobs) {
await ml.api.deleteAnomalyDetectionJobES(job.jobId);
}
await ml.api.cleanMlIndices();
});

Expand Down

0 comments on commit 5adf7b8

Please sign in to comment.