From 9f88ca02886595b5aad2b60007865812fd78aa98 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 11 Jul 2025 15:13:48 -0700 Subject: [PATCH] [tests] explicitly disable border agent in `test_publish_meshcop_service` (#11713) The `test_publish_meshcop_service` is updated to explicitly disable the border agent before factory resetting `br`. This makes the test more reliable by ensuring the MeshCoP service is unpublished. --- .../thread-cert/border_router/test_publish_meshcop_service.py | 2 ++ 1 file changed, 2 insertions(+) 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 259afb603..bceeceabf 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 @@ -179,6 +179,8 @@ class PublishMeshCopService(thread_cert.TestCase): self.check_meshcop_service(br1, host) self.check_meshcop_service(br2, host) + br1.disable_border_agent() + self.simulator.go(5) br1.factory_reset() dataset = {