From 99050f41294740949fffc919ad830cd290641fa3 Mon Sep 17 00:00:00 2001 From: Riccardo Biasini Date: Tue, 10 Mar 2020 17:42:07 -0700 Subject: [PATCH] test_spam_can_buses was missing from Nissan --- tests/safety/test_nissan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/safety/test_nissan.py b/tests/safety/test_nissan.py index cae264dd9f4fab..9d4145699887a3 100644 --- a/tests/safety/test_nissan.py +++ b/tests/safety/test_nissan.py @@ -11,6 +11,8 @@ ANGLE_DELTA_V = [5., .8, .15] # windup limit ANGLE_DELTA_VU = [5., 3.5, 0.4] # unwind limit +TX_MSGS = [[0x169, 0], [0x20b, 2]] + def twos_comp(val, bits): if val >= 0: return val @@ -86,6 +88,9 @@ def _acc_button_cmd(self, buttons): return to_send + def test_spam_can_buses(self): + StdTest.test_spam_can_buses(self, TX_MSGS) + def test_angle_cmd_when_enabled(self): # when controls are allowed, angle cmd rate limit is enforced