Correct the namespace of DeviceConfig in VpnTest
The namespace used in production code is NAMESPACE_TETHERING, not NAMESPACE_CONNECTIVITY. Test: atest com.android.cts.net.HostsideVpnTests Change-Id: I0f31176c521e2a877a964c2bbe6f387c4e71352a
This commit is contained in:
committed by
Chiachang Wang
parent
fbcd08a28d
commit
d64b2b1bdd
@@ -1175,8 +1175,8 @@ public class VpnTest {
|
||||
|
||||
final String origMode = runWithShellPermissionIdentity(() -> {
|
||||
final String mode = DeviceConfig.getProperty(
|
||||
DeviceConfig.NAMESPACE_CONNECTIVITY, AUTOMATIC_ON_OFF_KEEPALIVE_VERSION);
|
||||
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_CONNECTIVITY,
|
||||
DeviceConfig.NAMESPACE_TETHERING, AUTOMATIC_ON_OFF_KEEPALIVE_VERSION);
|
||||
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_TETHERING,
|
||||
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
||||
AUTOMATIC_ON_OFF_KEEPALIVE_ENABLED, false /* makeDefault */);
|
||||
return mode;
|
||||
@@ -1216,7 +1216,7 @@ public class VpnTest {
|
||||
|
||||
runWithShellPermissionIdentity(() -> {
|
||||
DeviceConfig.setProperty(
|
||||
DeviceConfig.NAMESPACE_CONNECTIVITY,
|
||||
DeviceConfig.NAMESPACE_TETHERING,
|
||||
AUTOMATIC_ON_OFF_KEEPALIVE_VERSION,
|
||||
origMode, false);
|
||||
mCM.setTestLowTcpPollingTimerForKeepalive(0);
|
||||
|
||||
Reference in New Issue
Block a user