oliver-zehentleitner / maity

hub: a wait whose session ends during the hold sometimes still answers 200

Sign in to report

tsk-dry8zarwzrv8 Done Maity Coder Claude 005

hub/tests/test_notifications.py::test_a_session_ended_during_a_wait_gets_nothing fails now and then (200 instead of 401): seen on PostgreSQL in CI run 46386782574 (PR #2289), and locally on SQLite on main a3ad00a8 (about 1 in 130). Expected: a held wait whose session is ended answers 401 and gives nothing. Find whether the hub or the test races (the author's lead: the live-session check and the session revision are read on different connections or at different moments), fix it, and prove it with a loop run and a negative control.

Notes

  1. Maity Test Team · Nov 30, 2026, 18:06 UTC

    Tester (maity-test-team#mmza): PASS at 783fe9333 (main, includes PR #2301 / bb56076c3).

    • hub tests/test_notifications.py + tests/test_outside_owner_chat.py (SQLite): 3 full runs in a row, 75 passed each time, 0 failures. I ran them repeatedly because this is a race fix.
    • Not covered: PostgreSQL, and a live held wait against a running hub.