Merge "Fix MultinetworkApiTest fail problem in instant mode" am: 3475b733b5 am: 59fdc91b04 am: c0a62623af am: 86e056dd01 am: ba61f51a7f
Original change: https://android-review.googlesource.com/c/platform/cts/+/1326955 Change-Id: Ic8fa1421b1092efdb011a124836d9f466a231f43
This commit is contained in:
@@ -68,7 +68,6 @@ public class MultinetworkApiTest extends AndroidTestCase {
|
||||
mCM = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
mCR = getContext().getContentResolver();
|
||||
mCtsNetUtils = new CtsNetUtils(getContext());
|
||||
mCtsNetUtils.storePrivateDnsSetting();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -223,6 +222,7 @@ public class MultinetworkApiTest extends AndroidTestCase {
|
||||
|
||||
@AppModeFull(reason = "WRITE_SECURE_SETTINGS permission can't be granted to instant apps")
|
||||
public void testResNApiNXDomainPrivateDns() throws InterruptedException {
|
||||
mCtsNetUtils.storePrivateDnsSetting();
|
||||
// Enable private DNS strict mode and set server to dns.google before doing NxDomain test.
|
||||
// b/144521720
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user