mirror of
https://github.com/espressif/openthread.git
synced 2026-08-20 01:19:51 +00:00
[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:
@@ -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().\
|
||||
|
||||
Reference in New Issue
Block a user