This repository was archived by the owner on Feb 28, 2024. It is now read-only.
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
samples.snippets.quickstart_searchallresources_test: test_search_all_resources failed #75
Closed
Description
This test failed!
To configure my behavior, see the Build Cop Bot documentation.
If I'm commenting on this issue too often, add the buildcop: quiet
label and
I will stop commenting.
commit: 4d57792
buildURL: Build Status, Sponge
status: failed
Test output
asset_dataset = 'dataset_6e92f46c6ed14102859892ce8809cfe8' capsys = <_pytest.capture.CaptureFixture object at 0x7f4471b6a970>def test_search_all_resources(asset_dataset, capsys): scope = "projects/{}".format(PROJECT) query = "name:{}".format(DATASET) # Dataset creation takes some time to propagate, so the dataset is not # immediately searchable. Need some time before the snippet will pass. @backoff.on_exception(backoff.expo, (AssertionError), max_time=120) def eventually_consistent_test(): quickstart_searchallresources.search_all_resources(scope, query=query) out, _ = capsys.readouterr() assert DATASET in out
eventually_consistent_test()
quickstart_searchallresources_test.py:62:
.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py:94: in retry
ret = target(*args, **kwargs)
@backoff.on_exception(backoff.expo, (AssertionError), max_time=120) def eventually_consistent_test(): quickstart_searchallresources.search_all_resources(scope, query=query) out, _ = capsys.readouterr()
assert DATASET in out
E AssertionError: assert 'dataset_6e92f46c6ed14102859892ce8809cfe8' in ''
quickstart_searchallresources_test.py:60: AssertionError