Skip to content

[6.x] [ML] Wrap controller initialization in assertions. (#26265)#26273

Merged
peteharverson merged 1 commit intoelastic:6.xfrom
walterra:backport/6.x/pr-26265
Nov 29, 2018
Merged

[6.x] [ML] Wrap controller initialization in assertions. (#26265)#26273
peteharverson merged 1 commit intoelastic:6.xfrom
walterra:backport/6.x/pr-26265

Conversation

@walterra
Copy link
Contributor

Backports the following commits to 6.x:

- The controller tests introduced in elastic#25382 had a flaw: If a controller initialization would fail and throw an error, that test suite wouldn't be able to clean up any stubs. So tests using the same stubs would report and error because the stubs couldn't be wrapped again.
- This PR wraps every controller initialization inside an assertion and catches those errors properly as part of the test.
@walterra walterra added the backport This PR is a backport of another PR label Nov 27, 2018
@walterra walterra self-assigned this Nov 27, 2018
@walterra walterra added the :ml label Nov 27, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

@peteharverson
Copy link
Contributor

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@peteharverson peteharverson merged commit 73387d2 into elastic:6.x Nov 29, 2018
@walterra walterra deleted the backport/6.x/pr-26265 branch December 3, 2018 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants