diff --git a/openpilot/starpilot/longitudinal/tests/test_ev9_stopping.py b/openpilot/starpilot/longitudinal/tests/test_ev9_stopping.py index cb651a5470..3c41d28bc7 100644 --- a/openpilot/starpilot/longitudinal/tests/test_ev9_stopping.py +++ b/openpilot/starpilot/longitudinal/tests/test_ev9_stopping.py @@ -34,12 +34,18 @@ def context(**fields): class TestEV9Stopping(unittest.TestCase): def test_only_exact_long_profile_gets_policy_and_stock_siblings_stay_unmodified(self): - assert policy_for(cp(), .01) is not None + for marker in (0, 32): + with self.subTest(admitted_marker=marker): + admitted = cp() + admitted.alternativeExperience = marker + self.assertIsNotNone(policy_for(admitted, .01)) for identity in (CAR.KIA_EV9, CAR.HYUNDAI_IONIQ_5_PE, CAR.HYUNDAI_IONIQ_6): self.assertIsNone(policy_for(params(candidate=identity), .01)) - malformed = cp() - malformed.alternativeExperience = 32 - self.assertIsNone(policy_for(malformed, .01)) + for marker in (1, 33, 64): + with self.subTest(invalid_marker=marker): + malformed = cp() + malformed.alternativeExperience = marker + self.assertIsNone(policy_for(malformed, .01)) def test_actual_loop_release_hysteresis_reset_and_lead_fast_path(self): loop = LongControl(cp()) diff --git a/prebuilt.json b/prebuilt.json index 3b950925e0..3d675fcd6b 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "3f3d31e4154b23c5b9591d61b3cf9799c485a830cfd6ab9ddd33a7a5028a4c0d", "schema_version": 1} +{"protected_inventory_sha256": "c2147a005d3047a225dfb659ec41a7cc02689146785844bc62dbc580a9259f76", "schema_version": 1}