Fix testIpClientIsNotStartedWhenLinkIsDown. am: 5216fc9eef

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ethernet/+/1976968

Change-Id: I78ad7e8eb718ffceae8990c7ea7c9298ecd1617e
This commit is contained in:
Lorenzo Colitti
2022-02-09 16:29:29 +00:00
committed by Automerger Merge Worker

View File

@@ -456,9 +456,10 @@ public class EthernetNetworkFactoryTest {
.build(); .build();
mNetFactory.needNetworkFor(specificNetRequest); mNetFactory.needNetworkFor(specificNetRequest);
// TODO(b/155707957): BUG: IPClient should not be started when the interface link state verify(mDeps, never()).makeIpClient(any(), any(), any());
// is down.
verify(mDeps).makeIpClient(any(), any(), any()); mNetFactory.updateInterfaceLinkState(TEST_IFACE, true, NULL_LISTENER);
verify(mDeps).makeIpClient(any(), eq(TEST_IFACE), any());
} }
@Test @Test