Skip to content

Commit

Permalink
[CloudAsset] Delay seconds between bucket creation and API call. [(#2082
Browse files Browse the repository at this point in the history
)](GoogleCloudPlatform/python-docs-samples#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.
  • Loading branch information
peter-zheng-g authored and busunkim96 committed Aug 4, 2020
1 parent 6581f6e commit 7737549
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def asset_bucket(storage_client):
def test_batch_get_assets_history(asset_bucket, capsys):
bucket_asset_name = '//storage.googleapis.com/{}'.format(BUCKET)
asset_names = [bucket_asset_name, ]
# There's some delay between bucket creation and when it's reflected in the
# backend.
time.sleep(15)
quickstart_batchgetassetshistory.batch_get_assets_history(
PROJECT, asset_names)
out, _ = capsys.readouterr()
Expand Down

0 comments on commit 7737549

Please sign in to comment.