diff --git a/selfdrive/ui/tests/test_raylib_ui.py b/selfdrive/ui/tests/test_raylib_ui.py index e0154e846b..82a1a38781 100644 --- a/selfdrive/ui/tests/test_raylib_ui.py +++ b/selfdrive/ui/tests/test_raylib_ui.py @@ -5,4 +5,7 @@ from openpilot.selfdrive.ui.layouts.main import MainLayout def test_raylib_ui(): """Test initialization of the UI widgets is successful.""" gui_app.init_window("UI") - MainLayout() + try: + MainLayout() + finally: + gui_app.close()