Merge "Fix missing function in NetworkStaticLibHostPythonTests" into main
This commit is contained in:
commit
d492666256
1 changed files with 3 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ IpClient.wlan1
|
|||
asserts.assert_equal(ip_addresses, [])
|
||||
|
||||
@patch("net_tests_utils.host.python.adb_utils.adb_shell")
|
||||
def test_get_ipv6_addresses_success(
|
||||
def test_get_non_tentative_ipv6_addresses_success(
|
||||
self, mock_adb_shell: MagicMock
|
||||
) -> None:
|
||||
mock_adb_shell.return_value = """
|
||||
|
|
@ -156,7 +156,7 @@ IpClient.wlan1
|
|||
inet6 fe80::3aff:2199:2d8e:20d1/64 scope link noprefixroute
|
||||
valid_lft forever preferred_lft forever
|
||||
"""
|
||||
ip_addresses = get_ipv6_addresses(self.mock_ad, "wlan0")
|
||||
ip_addresses = get_non_tentative_ipv6_addresses(self.mock_ad, "wlan0")
|
||||
asserts.assert_equal(ip_addresses,
|
||||
["fe80::10a3:5dff:fe52:de32",
|
||||
"2001:b400:e53f:164e:9c1e:780e:d1:4658",
|
||||
|
|
@ -167,7 +167,7 @@ IpClient.wlan1
|
|||
self, mock_adb_shell: MagicMock
|
||||
) -> None:
|
||||
mock_adb_shell.return_value = ""
|
||||
ip_addresses = get_ipv6_addresses(self.mock_ad, "wlan0")
|
||||
ip_addresses = get_non_tentative_ipv6_addresses(self.mock_ad, "wlan0")
|
||||
asserts.assert_equal(ip_addresses, [])
|
||||
|
||||
@patch("net_tests_utils.host.python.adb_utils.adb_shell")
|
||||
|
|
|
|||
Loading…
Reference in a new issue