Fix TetheringTest crash on eng build
startTrackDefaultNetwork was allowed to called multiple times before even though there is no one actually do it. However, in the TetheringTest#verifyDefaultNetworkRequestFiled, a manual invocation is used to ensure that function supports multiple entrance. But with aosp/1697371, startTrackDefaultNetwork is no longer allowed to be called multiple times, it would lead to log.wtf and crash system in eng build. Since the manual invocation of startTrackDefaultNetwork is not realistic and no longer valid anymore, remove the invocation that caused the trouble. Test: atest TetheringCoverageTests Bug: 188613493 Change-Id: I61f6088783d521fd17ae1e87370842b4239fbe75
This commit is contained in:
@@ -782,8 +782,6 @@ public class TetheringTest {
|
|||||||
assertTrue(TestConnectivityManager.looksLikeDefaultRequest(reqCaptor.getValue()));
|
assertTrue(TestConnectivityManager.looksLikeDefaultRequest(reqCaptor.getValue()));
|
||||||
// The default network request is only ever filed once.
|
// The default network request is only ever filed once.
|
||||||
verifyNoMoreInteractions(mCm);
|
verifyNoMoreInteractions(mCm);
|
||||||
mUpstreamNetworkMonitor.startTrackDefaultNetwork(mEntitleMgr);
|
|
||||||
verifyNoMoreInteractions(mCm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verifyInterfaceServingModeStarted(String ifname) throws Exception {
|
private void verifyInterfaceServingModeStarted(String ifname) throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user