From 0eee7277c2f36eaa59c8ae1a369c552c21722984 Mon Sep 17 00:00:00 2001 From: whd <7058128+superwhd@users.noreply.github.com> Date: Thu, 5 Aug 2021 23:34:30 +0800 Subject: [PATCH] [tests] update meshcop service instance name in test case (#6894) This commit aims to update the meshcop service instance name in test_publish_meshcop_service.py to make it consistent with the change on ot-br-posix side. --- .../thread-cert/border_router/test_publish_meshcop_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py b/tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py index a93c8b2a7..84b90c59b 100755 --- a/tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py +++ b/tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py @@ -95,8 +95,7 @@ class PublishMeshCopService(thread_cert.TestCase): self.simulator.go(5) self.check_meshcop_service(br, host) - def check_meshcop_service(self, br, host): - instance_name = r'OpenThread' + def check_meshcop_service(self, br, host, instance_name='OpenThread_BorderRouter'): data = host.discover_mdns_service(instance_name, '_meshcop._udp', None) sb_data = data['txt']['sb'].encode('raw_unicode_escape') state_bitmap = int.from_bytes(sb_data, byteorder='big')