[autotest] Fix USB detection failures in tests
Try to fix "Wrong input node" failure by increasing delay time after
binding USB from chameleon.
BUG=chromium:809414
TEST=test_that -b squawks <ip> audio_AudioBasicUSBPlayback
--args='chameleon_host=$chameleon_ip'
Change-Id: I041935dd5ef857501e43f1fb520a29bd4e330183
Reviewed-on: https://chromium-review.googlesource.com/1041665
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
diff --git a/client/cros/chameleon/audio_widget_link.py b/client/cros/chameleon/audio_widget_link.py
index 9460f2d..c428ca3 100644
--- a/client/cros/chameleon/audio_widget_link.py
+++ b/client/cros/chameleon/audio_widget_link.py
@@ -336,7 +336,7 @@
# This is the default channel map for 2-channel data
_DEFAULT_CHANNEL_MAP = [0, 1]
# Wait some time for Cros device to detect USB has been plugged.
- _DELAY_AFTER_PLUGGING_SECS = 0.5
+ _DELAY_AFTER_PLUGGING_SECS = 2.0
def __init__(self, usb_ctrl):
"""Initializes a USBWidgetLink.