From 0ab2ad9a6e66eecdcd7bbc7f6a83c6de7cba09bc Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Sun, 17 Mar 2019 16:56:25 +0100 Subject: [PATCH] Fix ADB tests to account for changes in #151 --- test/adb_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/adb_test.py b/test/adb_test.py index 0ce1ead..7a82664 100755 --- a/test/adb_test.py +++ b/test/adb_test.py @@ -33,6 +33,11 @@ class BaseAdbTest(unittest.TestCase): + def setUp(self): + # Ensure that the next local-id used by the AdbMessage class + # is reset back to LOCAL_ID to account for the changes in + # https://github.com/google/python-adb/pull/151 + adb_protocol.AdbMessage._local_id = LOCAL_ID @classmethod def _ExpectWrite(cls, usb, command, arg0, arg1, data):