Skip to content

Commit 25107b8

Browse files
gguussleahecole
andauthored
Passing flaky hints to prevent buildcop failures (GoogleCloudPlatform#2996)
* Passing flaky hints to prevent buildcop failures * Removing min_passes for CI envirionment Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
1 parent f392c84 commit 25107b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_config(test_topic, capsys):
182182
assert '/devices/{}/config'.format(device_id) in out
183183

184184

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

236236

237-
@flaky
237+
@flaky(max_runs=5)
238238
def test_gateway_listen_for_bound_device_configs(test_topic, capsys):
239239
gateway_id = device_id_template.format('RS256')
240240
device_id = device_id_template.format('noauthbind')
@@ -280,7 +280,7 @@ def test_gateway_listen_for_bound_device_configs(test_topic, capsys):
280280
assert 'Received message' in out
281281

282282

283-
@flaky
283+
@flaky(max_runs=5)
284284
def test_gateway_send_data_for_device(test_topic, capsys):
285285
gateway_id = device_id_template.format('RS256')
286286
device_id = device_id_template.format('noauthbind')

iot/api-client/mqtt_example/cloudiot_mqtt_image_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_image(test_topic, capsys):
8888
assert 'on_publish' in out
8989

9090

91-
@flaky
91+
@flaky(max_runs=5)
9292
def test_image_recv(test_topic, capsys):
9393
"""Transmit an image with IoT Core and receive it from PubSub"""
9494
subscriber = pubsub.SubscriberClient()

0 commit comments

Comments
 (0)