define config in test_emu_init_close

This commit is contained in:
Stefan Allius
2025-05-05 23:50:20 +02:00
parent ab2d4ed831
commit cfe13a01d1

View File

@@ -125,10 +125,8 @@ def heartbeat_ind():
msg = b'\xa5\x01\x00\x10G\x00\x01\x00\x00\x00\x00\x00Y\x15' msg = b'\xa5\x01\x00\x10G\x00\x01\x00\x00\x00\x00\x00Y\x15'
return msg return msg
def test_emu_init_close(): def test_emu_init_close(config_tsun_inv1):
# received a message with wrong start byte plus an valid message _ = config_tsun_inv1
# the complete receive buffer must be cleared to
# find the next valid message
inv = InvStream() inv = InvStream()
cld = CldStream(inv) cld = CldStream(inv)
cld.close() cld.close()