diff options
author | Xia Wang <xiaw@google.com> | 2014-04-04 16:23:38 -0700 |
---|---|---|
committer | Xia Wang <xiaw@google.com> | 2014-04-04 17:23:47 -0700 |
commit | ce11881accf5db04e2a54b58176e24de49ef6917 (patch) | |
tree | d70be16e28f5cc260a827bf11fba50a6551089e7 /tests | |
parent | cc01536f7755da6560a23057ac3dbdec10e3993f (diff) | |
download | packages_apps_Settings-ce11881accf5db04e2a54b58176e24de49ef6917.zip packages_apps_Settings-ce11881accf5db04e2a54b58176e24de49ef6917.tar.gz packages_apps_Settings-ce11881accf5db04e2a54b58176e24de49ef6917.tar.bz2 |
Allow VPN to stay connected for some time before disconnecting it.
Change-Id: I25994b8329514a32b5b6f383abef231d3decb4ec
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/settings/vpn2/VpnTests.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/com/android/settings/vpn2/VpnTests.java b/tests/src/com/android/settings/vpn2/VpnTests.java index 2c6963a..7d5961d 100644 --- a/tests/src/com/android/settings/vpn2/VpnTests.java +++ b/tests/src/com/android/settings/vpn2/VpnTests.java @@ -89,6 +89,7 @@ public class VpnTests extends InstrumentationTestCase { private static final String TAG = "VpnTests"; /* Maximum time to wait for VPN connection */ private static final long MAX_CONNECTION_TIME = 5 * 60 * 1000; + private static final long VPN_STAY_TIME = 60 * 1000; private static final int MAX_DISCONNECTION_TRIES = 3; private static final String EXTERNAL_SERVER = "http://ip2country.sourceforge.net/ip2c.php?format=JSON"; @@ -149,6 +150,12 @@ public class VpnTests extends InstrumentationTestCase { mCertHelper = new CertInstallerHelper(); } + @Override + protected void tearDown() throws Exception { + sleep(VPN_STAY_TIME); + super.tearDown(); + } + private void printVpnProfile(VpnProfile profile) { Log.v(TAG, "profile: "); Log.v(TAG, "key: " + profile.key); |