Merge "adb: hopefully deflake test_adb.py." am: 151499e47e
am: ad68f429ca
Change-Id: Id7527280afd0cb2400231dd9ac24281e517a0c6e
This commit is contained in:
commit
001adec269
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue