10000 chore: shorten duration of connector unit tests by rhatgadkar-goog · Pull Request #444 · GoogleCloudPlatform/alloydb-python-connector · GitHub
[go: up one dir, main page]

Skip to content

chore: shorten duration of connector unit tests #444

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
Apr 25, 2025

Conversation

rhatgadkar-goog
Copy link
Collaborator

test_connector.py and test_async_connector.py were taking around a minute to run. The reason for this is that the AlloyDB Admin API client sets a default deadline of 60s to retry failed API requests. This increases the time for certain unit tests, which send actual API requests. This PR overrides the timeout to 1s for those unit tests, to speed up their execution.

test_connector.py and test_async_connector.py were taking around a
minute to run. The reason for this is that the AlloyDB Admin API client
sets a default deadline of 60s to retry failed API requests. This
increases the time for certain unit tests, which send actual API
requests. This PR overrides the timeout to 1s for those unit tests, to
speed up their execution.
Copy link
Member
@enocom enocom left a comment

Choose a reason for hiding this comment

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

Nice!

@rhatgadkar-goog rhatgadkar-goog merged commit d7b180d into main Apr 25, 2025
15 checks passed
@rhatgadkar-goog rhatgadkar-goog deleted the shortest-test-duration branch April 25, 2025 17:46
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
0