[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.
This commit is contained in:
Jing Ma
2020-12-19 08:20:53 -08:00
committed by GitHub
parent 3166f6a0ed
commit ae43f3fda2
@@ -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()