Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586

Change-Id: I6aaac0e6ef7f89d5052c8a5dd2bef71612e72942
This commit is contained in:
Xia Wang
2011-02-08 18:38:58 -08:00
parent f38309aafd
commit ec841adcf7

View File

@@ -108,6 +108,14 @@ public class WifiApStress
fail("thread in sleep is interrupted");
}
assertTrue(mAct.mWifiManager.setWifiApEnabled(config, false));
// Wait for 30 seconds until Wi-Fi tethering is stopped
try {
Thread.sleep(30 * 1000);
Log.v(TAG, "wait for Wi-Fi tethering to be disabled.");
} catch (Exception e) {
fail("thread in sleep is interrupted");
}
assertFalse("Wi-Fi AP disable failed", mAct.mWifiManager.isWifiApEnabled());
}
if (i == iterations) {
mLastIteration = iterations;