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 a test to align with server side BCR #2065

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

sfc-gh-yuwang
Copy link
Contributor

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

  4. (Optional) PR for stored-proc connector:

Sorry, something went wrong.

@sfc-gh-yuwang sfc-gh-yuwang added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Oct 4, 2024
@@ -555,7 +555,7 @@ def test_eu_connection(tmpdir):
import os

os.environ["SF_OCSP_RESPONSE_CACHE_SERVER_ENABLED"] = "true"
with pytest.raises(OperationalError):
with pytest.raises((OperationalError, InterfaceError)):
Copy link
Collaborator

@sfc-gh-aling sfc-gh-aling Oct 4, 2024

Choose a reason for hiding this comment

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

does it still raise OperationalError?

Suggested change
with pytest.raises((OperationalError, InterfaceError)):
with pytest.raises(InterfaceError):

@sfc-gh-yuwang sfc-gh-yuwang merged commit aeb771c into main Oct 7, 2024
93 of 94 checks passed
@sfc-gh-yuwang sfc-gh-yuwang deleted the yuwang-fix-server-bcr branch October 7, 2024 16:40
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants