8000 [CloudAsset] Delay seconds between bucket creation and API call. (#2082) · mmmarklu/python-docs-samples@53e3d0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 53e3d0c

Browse files
peter-zheng-gandrewsg
authored andcommitted
[CloudAsset] Delay seconds between bucket creation and API call. (GoogleCloudPlatform#2082)
There's some latency between bucket creation and when it's reflected in the backend. Need to delay in order to make the API call successfully.
1 parent 535bc41 commit 53e3d0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

asset/cloud-client/quickstart_batchgetassetshistory_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def asset_bucket(storage_client):
4747
def test_batch_get_assets_history(asset_bucket, capsys):
4848
bucket_asset_name = '//storage.googleapis.com/{}'.format(BUCKET)
4949
asset_names = [bucket_asset_name, ]
50+
# There's some delay between bucket creation and when it's reflected in the
51+
# backend.
52+
time.sleep(15)
5053
quickstart_batchgetassetshistory.batch_get_assets_history(
5154
PROJECT, asset_names)
5255
out, _ = capsys.readouterr()

0 commit comments

Comments
 (0)
0