From d793d3622b72833b27e6f61d64bd3f5a43e70cda Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 31 Oct 2022 13:54:13 -0700 Subject: [PATCH] test_models: fix runaway memory growth for long running tests (#26295) * delete can msgs * only can msgs --- selfdrive/car/tests/test_models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index e4e141153..8cf748e74 100755 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -109,6 +109,10 @@ class TestCarModelBase(unittest.TestCase): assert cls.CP assert cls.CP.carFingerprint == cls.car_model + @classmethod + def tearDownClass(cls): + del cls.can_msgs + def setUp(self): self.CI = self.CarInterface(self.CP, self.CarController, self.CarState) assert self.CI