Skip to content

Commit

Permalink
temporary, repeat packing step 1M times
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Sep 12, 2024
1 parent b5a733d commit 06d8f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opendbc/can/tests/test_checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from opendbc.can.parser import CANParser
from opendbc.can.packer import CANPacker

REPEAT_COUNT = 1000000

class TestCanChecksums:

Expand Down Expand Up @@ -48,7 +49,9 @@ def verify_vw_mqb_crc(self, subtests, msg_name: str, msg_addr: int, test_message

modified = copy.deepcopy(expected)
modified.pop(crc_field, None)
modified_msg = packer.make_can_msg(msg_name, 0, modified)
modified_msg = None
for _ in range(REPEAT_COUNT):
modified_msg = packer.make_can_msg(msg_name, 0, modified)

parser.update_strings([0, [modified_msg]])
tested = parser.vl[msg_name]
Expand Down

0 comments on commit 06d8f46

Please sign in to comment.