From 06d8f46710612c10600fbda2583ef0e963539b53 Mon Sep 17 00:00:00 2001 From: Jason Young Date: Thu, 12 Sep 2024 15:34:12 -0400 Subject: [PATCH] temporary, repeat packing step 1M times --- opendbc/can/tests/test_checksums.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opendbc/can/tests/test_checksums.py b/opendbc/can/tests/test_checksums.py index 52ac79398b..8dc576b6ea 100644 --- a/opendbc/can/tests/test_checksums.py +++ b/opendbc/can/tests/test_checksums.py @@ -2,6 +2,7 @@ from opendbc.can.parser import CANParser from opendbc.can.packer import CANPacker +REPEAT_COUNT = 1000000 class TestCanChecksums: @@ -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]