mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
[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(...)`.
This commit is contained in:
committed by
Jonathan Hui
parent
5851524d7a
commit
ed0f4bf412
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user