pytest-docker icon indicating copy to clipboard operation
pytest-docker copied to clipboard

feat: raise a more specific exception on timeout

Open nejch opened this issue 3 years ago • 1 comments

This provides a narrower exception to catch when calling wait_until_responsive.

Context: when an entire testsuite relies on a service, I'd like to call pytest.exit() if it times out so that a useful error message is displayed for the user instead of failing the fixture setup for all tests and producing a wall of text.

/cc @Luminaar

nejch avatar Oct 15 '22 20:10 nejch

May I ask you to resolve the conflicts? 🙏 Thanks!

augi avatar Jan 25 '24 10:01 augi