commit | 151499e47e0612f40748a45fa235176814ca5b1f | [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 | 575996837cde17a6e8f80d2c45adf17bdcea5fe6 [diff] | |
parent | aa95aa063fb0c7069b32f091bbce723da2761fcc [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")