commit | f7a0c900e86e735a79cac4847d087cf633577c51 | [log] [tgz] |
---|---|---|
author | Hao Liu <haoliuu@google.com> | Mon Mar 20 01:00:05 2023 +0000 |
committer | Hao Liu <haoliuu@google.com> | Mon Mar 20 21:46:53 2023 +0000 |
tree | a296e6595ccfd88dba630a24996d80ade3f57e42 | |
parent | 0d820b0095f4c7d99be009e26ded6ba360c7d252 [diff] |
Add 5 seconds wait time in first setup() method run. The first test, testCreateMddManagerSuccessfully, is flaky because it's the first test run in this test suite and it needs to have WIFI connection in order to download files via MDD. The WIFI connection has a few seconds delay when device boot up, which caused this test can't download files. Using WifiManager isn't working on low-performance devices. So I move WifiManager.isWifiEnabled() check and add a sleep 5 seconds only in when setup() runs at the first time. MUST_SLEEP: Add latency to fix the boot-up WIFI connection delay on low-performance devices. ABTD test: https://android-build.corp.google.com/test_investigate/?invocationId=I52700010142058766&testResultId=TR35428556326352392&redirect=http://fusion2/7a51c63f-bc94-48b3-975c-f270f66c6cea Test: atest Bug: 272399359 Change-Id: Id742924237f8ac6244aeae69dafa1fcf2cc9ab2a