Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jun 22, 2023
1 parent d84bdc3 commit 56bd919
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ export default ({ getService }: FtrProviderContext) => {
await ml.api.createAnomalyDetectionJobES(
ml.commonConfig.getADFqSingleMetricJobConfig(adJobId1)
);

// datafeed should be added with the request
const datafeedConfig1 = ml.commonConfig.getADFqDatafeedConfig(adJobId1);
await ml.api.createDatafeedES(datafeedConfig1);
await ml.api.createDatafeedES(ml.commonConfig.getADFqDatafeedConfig(adJobId1));

// check to see if a sync is needed
const syncNeeded2 = await runSyncCheckRequest(
Expand Down Expand Up @@ -216,9 +213,7 @@ export default ({ getService }: FtrProviderContext) => {
ml.commonConfig.getADFqSingleMetricJobConfig(adJobId1),
idSpace2
);

const datafeedConfig1 = ml.commonConfig.getADFqDatafeedConfig(adJobId1);
await ml.api.createDatafeed(datafeedConfig1, idSpace2);
await ml.api.createDatafeed(ml.commonConfig.getADFqDatafeedConfig(adJobId1), idSpace2);

// check to see if a sync is needed
const syncNeeded2 = await runSyncCheckRequest(
Expand Down

0 comments on commit 56bd919

Please sign in to comment.