[tests] fix race condition in Nexus Test 1.1.5.6.2 (#12640)

The packet verification script for Nexus Test 1.1.5.6.2 occasionally
failed because it expected a CoAP ACK followed by an MLE Data Response
in a specific order. Since both packets are triggered by the same
Server Data Notification event, their relative order in the PCAP can
vary.

This commit updates the script to use `pkts.copy()` when searching for
the CoAP ACK. This allows the verification to find the ACK regardless
of whether it appears before or after the MLE Data Response, making
the test more robust.
This commit is contained in:
Jonathan Hui
2026-03-06 13:10:24 -06:00
committed by GitHub
parent bbff1b461e
commit 9080e827d8
+1 -1
View File
@@ -139,7 +139,7 @@ def verify(pv):
# information collected, adding also the 6LoWPAN ID TLV for the prefix
# set on Router_1.
print("Step 5: Leader (DUT) sends a CoAP Response frame and MLE Data Response message.")
pkts.filter_coap_ack(consts.SVR_DATA_URI).\
pkts.copy().filter_coap_ack(consts.SVR_DATA_URI).\
must_next()
pkts.filter_LLANMA().\