Merge "adb: hopefully deflake test_adb.py."

am: 151499e47e

Change-Id: I38b0a7c693a3e4b6eabb092d15309539972d982e
This commit is contained in:
Josh Gao 2019-02-07 21:54:41 -08:00 committed by android-build-merger
commit ad68f429ca

View file

@ -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")