Skip to content

Commit

Permalink
[ML] Functional tests - stabilize DFA job creation (#68495) (#68627)
Browse files Browse the repository at this point in the history
This PR stabilizes the classification and regression creation tests.
  • Loading branch information
pheyos authored Jun 9, 2020
1 parent 0b1d962 commit ae63e84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const ml = getService('ml');

// flaky test, see https://github.com/elastic/kibana/issues/68356
describe.skip('classification creation', function () {
describe('classification creation', function () {
before(async () => {
await esArchiver.loadIfNeeded('ml/bm_classification');
await ml.testResources.createIndexPatternIfNeeded('ft_bank_marketing', '@timestamp');
Expand Down Expand Up @@ -66,7 +65,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('selects the source data and loads the job wizard page', async () => {
ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
await ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
});

it('selects the job type', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('selects the source data and loads the job wizard page', async () => {
ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
await ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
});

it('selects the job type', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const ml = getService('ml');

// flaky test, see https://github.com/elastic/kibana/issues/68352
describe.skip('regression creation', function () {
describe('regression creation', function () {
before(async () => {
await esArchiver.loadIfNeeded('ml/egs_regression');
await ml.testResources.createIndexPatternIfNeeded('ft_egs_regression', '@timestamp');
Expand Down Expand Up @@ -66,7 +65,7 @@ export default function ({ getService }: FtrProviderContext) {
});

it('selects the source data and loads the job wizard page', async () => {
ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
await ml.jobSourceSelection.selectSourceForAnalyticsJob(testData.source);
});

it('selects the job type', async () => {
Expand Down

0 comments on commit ae63e84

Please sign in to comment.