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

fix test no backend #106

Merged
merged 12 commits into from
Aug 15, 2024
Merged

fix test no backend #106

merged 12 commits into from
Aug 15, 2024

Conversation

dsavchenko
Copy link
Member

@dsavchenko dsavchenko commented Aug 14, 2024

One test that requires backend to be unavailable started to fail (https://github.com/oda-hub/dispatcher-app/actions/runs/10352765910/job/28765875291) due to recent update in pytest-httpserver library.
Normally, due to the documentation the mock server stays alive between tests, just resetting its "state". Given that, one can't expect it to be unreachable in this test anyway, and the test used to work only because of the peculiarities of how and when the server state is being reset.
Moving this test to be run before mock server was started to assure it works correctly. (Normally, pytest respects the ordering of the tests in the module, from top to bottom.)

Also, this PR includes changes to make sure that subprocesses (if any) of xprocess-started backend are killed

@dsavchenko dsavchenko changed the title dummy change fix test no backend Aug 14, 2024
@dsavchenko dsavchenko marked this pull request as ready for review August 14, 2024 21:01
@dsavchenko dsavchenko merged commit 03fb407 into master Aug 15, 2024
2 checks passed
@burnout87 burnout87 mentioned this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants