Skip to content

Commit edae2c2

Browse files
committed
fixup! tests: provide tests for emcute
1 parent 8204ffa commit edae2c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/emcute/tests/01-run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ def receive_PUBACK(self, pkt, args):
315315
@ATMT.action(receive_CONNECT_mode_sub)
316316
@ATMT.action(receive_CONNECT_mode_pub_or_sub_w_reg)
317317
def send_CONNACK(self):
318+
# send too large packet for reception buffer
319+
# see https://github.com/RIOT-OS/RIOT/pull/12382
320+
self.last_packet = mqttsn.MQTTSN() / \
321+
mqttsn.MQTTSNConnack() / ("X" * 525)
322+
self.send(self.last_packet)
318323
# send deliberately broken length packets (too small len)
319324
self.last_packet = mqttsn.MQTTSN(len=2) / mqttsn.MQTTSNConnack()
320325
self.send(self.last_packet)

0 commit comments

Comments
 (0)