Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

chore: use freezegun to mock time in retry tests#1753

Merged
Linchin merged 2 commits intomainfrom
freezegun_retry_test
Dec 14, 2023
Merged

chore: use freezegun to mock time in retry tests#1753
Linchin merged 2 commits intomainfrom
freezegun_retry_test

Conversation

@daniel-sanche
Copy link
Copy Markdown
Contributor

Use freezegun to mock time in an implementation-agnostic way for test_job_retry.

This will allow the test to pass for future api_core versions, which use the more lightweight time.monotonic to make timestamps instead of datetime_helpers

@daniel-sanche daniel-sanche requested review from a team and GaoleMeng December 14, 2023 18:36
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Dec 14, 2023
@daniel-sanche daniel-sanche requested review from Linchin and removed request for GaoleMeng December 14, 2023 18:37
@Linchin Linchin merged commit c3b89fd into main Dec 14, 2023
@Linchin Linchin deleted the freezegun_retry_test branch December 14, 2023 21:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants