Waits an extra second after monsoon reconnection. Logs monsoon usb state change.
Some devices take slightly longer to be adb ready.
Test: Local run
Test: Unit test pass
Bug: 143720953
Bug: 146498379
Change-Id: Icd85bcafadd0ef0a50d0c73921a7d7ec4d525095
diff --git a/acts/framework/acts/controllers/monsoon_lib/api/monsoon.py b/acts/framework/acts/controllers/monsoon_lib/api/monsoon.py
index a55fc8a..6a7e4af 100644
--- a/acts/framework/acts/controllers/monsoon_lib/api/monsoon.py
+++ b/acts/framework/acts/controllers/monsoon_lib/api/monsoon.py
@@ -152,6 +152,8 @@
'seconds.' % time_limit_seconds)
self._set_usb_passthrough_mode(expected_state)
time.sleep(1)
+ self._log.info('Monsoon usbPassthroughMode is now "%s"',
+ state)
if expected_state in [PassthroughStates.ON]:
self._on_reconnect()
@@ -261,10 +263,10 @@
TimeoutError upon failure to reconnect over USB.
"""
self._log.info('Reconnecting dut.')
- # Wait for one second to ensure that the relay is ready, then
+ # Wait for two seconds to ensure that the device is ready, then
# attempt to reconnect. If reconnect times out, reset the passthrough
# state and try again.
- time.sleep(1)
+ time.sleep(2)
try:
self.on_reconnect()
except TimeoutError as err: