Skip to content

Commit

Permalink
[ML] Functional tests - stabilize DFA job creation (#68495)
Browse files Browse the repository at this point in the history
This PR stabilizes the classification and regression creation tests.
  • Loading branch information
pheyos committed Jun 9, 2020
1 parent e67b29f commit a2e6f1c
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 a2e6f1c

Please sign in to comment.