From ed0f4bf412a9f2ee73071bc753f43118322585c2 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 16 Aug 2021 22:19:39 -0700 Subject: [PATCH] [test] fix `border_router/test_plat_udp_accessiblity.py` (#6927) This commit fixes the test by removing the unnecessary argument in the call to `srp_client_remove_host()`. Removing the host on SRP client also removed all previously registered service so we can remove the call to `client.srp_client_remove_service(...)`. --- .../thread-cert/border_router/test_plat_udp_accessiblity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py b/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py index dda16d3d5..2bbcb62c8 100644 --- a/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py +++ b/tests/scripts/thread-cert/border_router/test_plat_udp_accessiblity.py @@ -33,7 +33,7 @@ import config # Test description: # This test verifies UDP servers can be accessible using RLOC/ALOC/MLEID/LINK-LOCAL/OMR when PLAT_UDP is enabled. -# This test uses SRP server for convince. +# This test uses SRP server for convenience. # # Topology: # -----------(eth)------ @@ -132,8 +132,7 @@ class TestPlatUdpAccessibility(thread_cert.TestCase): self.assertEqual(client.srp_client_get_host_state(), 'Registered') # check if the SRP client can remove from the SRP server - client.srp_client_remove_host('host1') - client.srp_client_remove_service('ins1', '_ipp._tcp') + client.srp_client_remove_host() self.simulator.go(3) self.assertEqual(client.srp_client_get_host_state(), 'Removed')