Skip to content

Commit a3a1e40

Browse files
author
Takashi Matsuo
authored
[iot] testing: verbose log output, adding a new assert (#3854)
part of #3852
1 parent 902ad10 commit a3a1e40

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def test_gateway_send_data_for_device(
184184

185185
out, _ = capsys.readouterr()
186186
assert 'Publishing message 5/5' in out
187+
assert 'Received message' in out
188+
# We know we sometimes get 'Out of memory' in the output.
189+
# We'd like to know when this occurs with verbose log output.
187190
assert 'Out of memory' not in out # Indicates could not connect
188191

189192

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = -vv

0 commit comments

Comments
 (0)