Skip to content

Real-systemd trigger test expects an ended one-off to leave no row #511

Closed

Description

@lydakis

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

  1. added a commit that references this issue on Oct 31, 2026
    e91010f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions