Skip to content

Commit 0ab2ad9

Browse files
committed
Fix ADB tests to account for changes in google#151
1 parent 76ed032 commit 0ab2ad9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: test/adb_test.py

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333

3434

3535
class BaseAdbTest(unittest.TestCase):
36+
def setUp(self):
37+
# Ensure that the next local-id used by the AdbMessage class
38+
# is reset back to LOCAL_ID to account for the changes in
39+
# https://github.com/google/python-adb/pull/151
40+
adb_protocol.AdbMessage._local_id = LOCAL_ID
3641

3742
@classmethod
3843
def _ExpectWrite(cls, usb, command, arg0, arg1, data):

0 commit comments

Comments
 (0)