Skip to content

Commit 40f8b72

Browse files
Update bigquery/tests/integration/smoke_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 67caf2b commit 40f8b72

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

bigquery/tests/integration/smoke_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,12 @@ def is_processing(operation) -> bool:
6767
and operation.metadata['common']['state'] == 'PROCESSING'
6868
)
6969

70-
@retry(
70+
operation = await retry(
7171
retry=retry_if_result(is_processing),
7272
wait=wait_fixed(10),
7373
stop=stop_after_attempt(10),
7474
reraise=True,
75-
)
76-
async def get_operation_with_retry(name: str):
77-
return await ds.get_datastore_operation(name)
78-
79-
operation = await get_operation_with_retry(operation.name)
75+
)(ds.get_datastore_operation)(operation.name)
8076

8177
assert operation.metadata['common']['state'] == 'SUCCESSFUL'
8278
# END: copy from `test_datastore_export`

0 commit comments

Comments
 (0)