Loading adb/test_adb.py +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
adb/test_adb.py +3 −0 Original line number Diff line number Diff line Loading @@ -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