summaryrefslogtreecommitdiff
path: root/adb/test_adb.py
diff options
context:
space:
mode:
Diffstat (limited to 'adb/test_adb.py')
-rwxr-xr-xadb/test_adb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/adb/test_adb.py b/adb/test_adb.py
index 430fc3d85..14e5071fb 100755
--- a/adb/test_adb.py
+++ b/adb/test_adb.py
@@ -422,6 +422,9 @@ class ConnectionTest(unittest.TestCase):
with fake_adbd() as (port, _):
serial = "localhost:{}".format(port)
with adb_connect(self, serial):
+ # Wait a bit to give adb some time to connect.
+ time.sleep(0.25)
+
output = subprocess.check_output(["adb", "-s", serial,
"get-state"])
self.assertEqual(output.strip(), b"device")