Closed hanx-github closed 5 years ago
tests/mobly/controllers/android_device_test.py, line 908 at r1 (raw file):
> ``` > test_AndroidDevice_wait_for_completion > ``` Doesn't this test have sleep wait in real time? Could you mock that? Additionally, could you add tests for when the device never boots (overriding the timeout as well)?
I have added another test case test_AndroidDevice_wait_for_completion_completed.
Ran 1 test in 0.002s
Ran 1 test in 0.002s
OK (mobly_dev_env) ➜ mobly git:(master)
tests/mobly/controllers/android_device_test.py, line 908 at r1 (raw file):
I have added another test case test_AndroidDevice_wait_for_completion_completed. Here are the two successful runs: (mobly_dev_env) ➜ mobly git:(master) python tests/mobly/controllers/android_device_test.py AndroidDeviceTest.test_AndroidDevice_wait_for_completion_never_boot . ---------------------------------------------------------------------- Ran 1 test in 0.002s OK (mobly_dev_env) ➜ mobly git:(master) python tests/mobly/controllers/android_device_test.py AndroidDeviceTest.test_AndroidDevice_wait_for_completion_completed . ---------------------------------------------------------------------- Ran 1 test in 0.002s OK (mobly_dev_env) ➜ mobly git:(master)
Done.
This change is