From 8f71d53eb0b14b9344789d65abe458436bcb0c2a Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 26 Nov 2024 16:54:05 -0800 Subject: [PATCH] test_models: display failed rx msg address --- selfdrive/car/tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index b50955b2a95381..ee60c47021a51a 100644 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -394,7 +394,7 @@ def test_panda_safety_carstate(self): for msg in filter(lambda m: m.src in range(64), can.can): to_send = libpanda_py.make_CANPacket(msg.address, msg.src % 4, msg.dat) ret = self.safety.safety_rx_hook(to_send) - self.assertEqual(1, ret, f"safety rx failed ({ret=}): {to_send}") + self.assertEqual(1, ret, f"safety rx failed ({ret=}): {(msg.address, msg.src % 4)}") # Skip first frame so CS_prev is properly initialized if idx == 0: