From ae43f3fda29516ff6b9b21c8a85da034e40f5c54 Mon Sep 17 00:00:00 2001 From: Jing Ma Date: Sun, 20 Dec 2020 00:20:53 +0800 Subject: [PATCH] [thread-cert] fix case 5.1.12 intermittent failure (#5976) An issue is caused by The Challenge TLV and TLV Request TLV MUST be included if the response is an Accept and Request message in Step 4, delete these two TLV checks when the response is a Link Accept message. --- .../thread-cert/Cert_5_1_12_NewRouterNeighborSync.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/scripts/thread-cert/Cert_5_1_12_NewRouterNeighborSync.py b/tests/scripts/thread-cert/Cert_5_1_12_NewRouterNeighborSync.py index 453fcca3e..9af0f6662 100755 --- a/tests/scripts/thread-cert/Cert_5_1_12_NewRouterNeighborSync.py +++ b/tests/scripts/thread-cert/Cert_5_1_12_NewRouterNeighborSync.py @@ -199,10 +199,8 @@ class Cert_5_1_12_NewRouterSync(thread_cert.TestCase): LINK_MARGIN_TLV, RESPONSE_TLV, SOURCE_ADDRESS_TLV, - VERSION_TLV, - TLV_REQUEST_TLV, - LINK_MARGIN_TLV - } <= set(p.mle.tlv.type) and\ + VERSION_TLV + } <= set(p.mle.tlv.type) and\ p.mle.tlv.link_margin is not nullField ).\ must_next()