You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Real-systemd trigger test expects an ended one-off to leave no row #511
tests/test_trigger.py::test_real_systemd_fires_and_removes fails on main. It is opt-in (AGENT_TEST_SYSTEMD=1, which needs a real user manager), so CI never runs it.
After the one-off fires and ends itself, the test asserts trigger ls returns []. But the ended one-off's row is still listed, with 'once': True, 'sent': 1.
Ended triggers now keep their row on purpose: a one-off whose turn fails after it sent still shows (#442), and /background lists what failed. So the assertion is probably what's stale, not the behavior. The test should check for the ended row (or rm it) rather than for an empty list.
I found this while running the systemd tests for #453. The failure reproduces with main's binaries, so it isn't caused by that change.
Activity
Trigger tests: an ended one-off keeps its row until its turn is done