Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Robustify TestMachines.testCreate #9699

Closed

Conversation

martinpitt
Copy link
Member

Rewrite the checkOsOrVendorFiltered() function to not expect a
wait_present() failure, and avoid catching blanket exceptions. Use
wait_not_present() instead.

Otherwise this unhandled exception from ph_wait_cond() bubbles up to
the actual page, which is confusing when running the tests in an
interactive browser for debugging.

Rewrite the checkOsOrVendorFiltered() function to not expect a
wait_present() failure, and avoid catching blanket exceptions. Use
`wait_not_present()` instead.

Otherwise this unhandled exception from `ph_wait_cond()` bubbles up to
the actual page, which is confusing when running the tests in an
interactive browser for debugging.
@martinpitt
Copy link
Member Author

This was originally a fix for #9639 while the code did not get along with unhandled exceptions from our own test suite. This isn't necessary any more, but I still think this is a nice little cleanup.

@martinpitt
Copy link
Member Author

This breaks, and I don't care enough, so closing.

@martinpitt martinpitt closed this Jul 29, 2018
@martinpitt martinpitt deleted the test-machines-robustify branch July 29, 2018 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant