Skip to content

test: use the correct ConnectionError class in the tests #198

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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

pyrooka
Copy link
Member

@pyrooka pyrooka commented Jul 12, 2024

A recently introduced unit test uses the ConnectionError class from the standard library
to check the type of a returned exception, but that's not correct because the actual
exception that can be thrown there is the requests.exceptions.ConnectionError.
This confusion made the tests fail sometimes.

@pyrooka pyrooka requested a review from padamstx July 12, 2024 16:18
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pyrooka pyrooka changed the title fix: use the correct ConnectionError class in the tests test: use the correct ConnectionError class in the tests Jul 12, 2024
@pyrooka pyrooka merged commit ce24626 into main Jul 12, 2024
4 checks passed
@pyrooka pyrooka deleted the nb/fix-connection-error-type branch July 12, 2024 16:29
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 3.20.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants