commit | 6213d4c21c5822bf23996d77da8dd5302aba820e | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Feb 08 05:46:16 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 08 05:46:16 2019 +0000 |
tree | 7605b8f1ce982be344d10adede4ebf3d3f25c49f | |
parent | 21e61c2d2804d2a88ead865824df9d6f10203264 [diff] | |
parent | a2c57fb05d026cfd19edbb6e56a9126e8fc480f3 [diff] |
Merge "adb: hopefully deflake test_adb.py."
diff --git a/adb/test_adb.py b/adb/test_adb.py index 430fc3d..14e5071 100755 --- a/adb/test_adb.py +++ b/adb/test_adb.py
@@ -422,6 +422,9 @@ 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")