Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53e3d0c

Browse filesBrowse 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
Copy full SHA for 53e3d0c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎asset/cloud-client/quickstart_batchgetassetshistory_test.py

Copy file name to clipboardExpand all lines: asset/cloud-client/quickstart_batchgetassetshistory_test.py
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.