mirror of
https://github.com/espressif/openthread.git
synced 2026-10-01 21:37:39 +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:
|
# Test description:
|
||||||
# This test verifies UDP servers can be accessible using RLOC/ALOC/MLEID/LINK-LOCAL/OMR when PLAT_UDP is enabled.
|
# 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:
|
# Topology:
|
||||||
# -----------(eth)------
|
# -----------(eth)------
|
||||||
@@ -132,8 +132,7 @@ class TestPlatUdpAccessibility(thread_cert.TestCase):
|
|||||||
self.assertEqual(client.srp_client_get_host_state(), 'Registered')
|
self.assertEqual(client.srp_client_get_host_state(), 'Registered')
|
||||||
|
|
||||||
# check if the SRP client can remove from the SRP server
|
# check if the SRP client can remove from the SRP server
|
||||||
client.srp_client_remove_host('host1')
|
client.srp_client_remove_host()
|
||||||
client.srp_client_remove_service('ins1', '_ipp._tcp')
|
|
||||||
self.simulator.go(3)
|
self.simulator.go(3)
|
||||||
self.assertEqual(client.srp_client_get_host_state(), 'Removed')
|
self.assertEqual(client.srp_client_get_host_state(), 'Removed')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user