Problem
The GUI launch test (test_static_centerline_generator_gui_launch.test.py) opens a visible PyQt5 window (centerline_updater_helper.py) during colcon test. This is disruptive when running tests locally, and unnecessary since the test only needs the Qt event loop, not a visible window.
The test also takes ~67s due to generous timeout values in spin_once calls and a hardcoded time.sleep(3).
Proposed fix
- Set
QT_QPA_PLATFORM=offscreen in the test environment to suppress the visible window
- Consider tightening the timeout values (
setUp uses 60s timeouts, test uses 30s timeouts)
Problem
The GUI launch test (
test_static_centerline_generator_gui_launch.test.py) opens a visible PyQt5 window (centerline_updater_helper.py) duringcolcon test. This is disruptive when running tests locally, and unnecessary since the test only needs the Qt event loop, not a visible window.The test also takes ~67s due to generous timeout values in
spin_oncecalls and a hardcodedtime.sleep(3).Proposed fix
QT_QPA_PLATFORM=offscreenin the test environment to suppress the visible windowsetUpuses 60s timeouts, test uses 30s timeouts)