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
#102882)

This PR explicitly deletes the jobs created by the `setupModule` tests.
  • Loading branch information
pheyos authored Jun 22, 2021
1 parent 01ce7ac commit 0690030
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 0690030

Please sign in to comment.