Skip to content

Commit a43946f

Browse files
committed
chore: update tests
1 parent 6cd419e commit a43946f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/devices/test_mqtt_channel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ async def test_message_decode_error(
159159
mqtt_message_handler(b"invalid_payload")
160160
await asyncio.sleep(0.01) # yield
161161

162-
warning_records = caplog.records
163-
assert len(warning_records) == 1
164-
assert "Failed to decode message" in warning_records[0].message
162+
assert callback.call_count == 0
165163
unsub()
166164

167165

0 commit comments

Comments
 (0)