Make TestIdleCleanupKeepsActiveUser independent of timing (closes #181) #182

Merged
clawbot merged 1 commits from issue-181-idle-cleanup-test into next 2026-10-21 13:06:02 +02:00
1 Commits
Author SHA1 Message Date
sneak 7291351466 Make TestIdleCleanupKeepsActiveUser independent of timing (closes #181)
check / check (push) Waiting to run
The test slept 500 ms, had active send PING, then asked for sessions
last seen before now minus 500 ms. On a loaded host the PONG can take
more than 500 ms to arrive, which puts active's last-seen time before
that cutoff. The code is right: it records the time before it replies,
to the nanosecond.

The test now takes the cutoff after both users register and before
active's PING, so the result follows from the order of events alone.

Model: opus-5-5
2026-10-21 04:52:00 +00:00