Skip to content

Passing flaky hints to prevent buildcop failures #2996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions iot/api-client/mqtt_example/cloudiot_mqtt_example_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def test_config(test_topic, capsys):
assert '/devices/{}/config'.format(device_id) in out


@flaky
@flaky(max_runs=5)
def test_receive_command(capsys):
device_id = device_id_template.format('RSA256')
manager.create_registry(
Expand Down Expand Up @@ -234,7 +234,7 @@ def test_receive_command(capsys):
assert '\'me want cookies\'' in out # Verify can receive command


@flaky
@flaky(max_runs=5)
def test_gateway_listen_for_bound_device_configs(test_topic, capsys):
gateway_id = device_id_template.format('RS256')
device_id = device_id_template.format('noauthbind')
Expand Down Expand Up @@ -280,7 +280,7 @@ def test_gateway_listen_for_bound_device_configs(test_topic, capsys):
assert 'Received message' in out


@flaky
@flaky(max_runs=5)
def test_gateway_send_data_for_device(test_topic, capsys):
gateway_id = device_id_template.format('RS256')
device_id = device_id_template.format('noauthbind')
Expand Down
2 changes: 1 addition & 1 deletion iot/api-client/mqtt_example/cloudiot_mqtt_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_image(test_topic, capsys):
assert 'on_publish' in out


@flaky
@flaky(max_runs=5)
def test_image_recv(test_topic, capsys):
"""Transmit an image with IoT Core and receive it from PubSub"""
subscriber = pubsub.SubscriberClient()
Expand Down