Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec841adc authored by Xia Wang's avatar Xia Wang
Browse files

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

Change-Id: I6aaac0e6ef7f89d5052c8a5dd2bef71612e72942
parent f38309aa
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;