googleapis / python-api-core

https://googleapis.dev/python/google-api-core/latest
Apache License 2.0
123 stars 88 forks source link

chore: Revert "chore: move retry async check to wrap time" #743

Closed parthea closed 1 month ago

parthea commented 1 month ago

Reverts googleapis/python-api-core#668

PR #668 causes tests to fail in the python-bigquery repository. See build log here from PR https://github.com/googleapis/python-bigquery/pull/2045.

E               AssertionError: Calls not found.
E               Expected: [call(method='POST', path='/projects/test-project-123/jobs', data={'jobReference': {'jobId': 'job-id', 'projectId': 'test-project-123'}}, timeout=None),
E                call(method='POST', path='/projects/test-project-123/jobs', data={'jobReference': {'jobId': 'job-id', 'projectId': 'test-project-123'}}, timeout=None),
E                call(method='GET', path='/projects/test-project-123/jobs/job-id', query_params={'projection': 'full', 'location': 'US'}, timeout=128)]
E                 Actual: [call.__code__.co_flags.__and__(128),
E                call.__code__.co_flags.__and__().__bool__(),
E                call(method='POST', path='/projects/test-project-123/jobs', data={'jobReference': {'jobId': 'job-id', 'projectId': 'test-project-123'}}, timeout=None),
E                call(method='POST', path='/projects/test-project-123/jobs', data={'jobReference': {'jobId': 'job-id', 'projectId': 'test-project-123'}}, timeout=None),
E                call.__code__.co_flags.__and__(128),
E                call.__code__.co_flags.__and__().__bool__(),
E                call(method='GET', path='/projects/test-project-123/jobs/job-id', query_params={'projection': 'full', 'location': 'US'}, timeout=128)]