From 9080e827d8a579ff66697b21edb436ed5192976f Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 6 Mar 2026 13:10:24 -0600 Subject: [PATCH] [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. --- tests/nexus/verify_1_1_5_6_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nexus/verify_1_1_5_6_2.py b/tests/nexus/verify_1_1_5_6_2.py index c6ea32018..7d103263f 100644 --- a/tests/nexus/verify_1_1_5_6_2.py +++ b/tests/nexus/verify_1_1_5_6_2.py @@ -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().\