test: chat_test "runs one answer at a time per conversation" is flaky under full parallel runs #24

Closed
opened 2026-11-01 16:49:01 +00:00 by jfro · 0 comments
Owner

test/lamplighter/chat_test.exs:149 ("runs one answer at a time per conversation") failed once under a full parallel mix test on PR #7's branch: Chat.running was still set right after Chat.stop. It's on main, so it can randomly redden CI.

Likely a race between stop and the running-flag clear; the test should wait for the stop to be observed (or Chat.stop should be synchronous).

Seen by Nye during PR #7 review.

`test/lamplighter/chat_test.exs:149` ("runs one answer at a time per conversation") failed once under a full parallel `mix test` on PR #7's branch: `Chat.running` was still set right after `Chat.stop`. It's on main, so it can randomly redden CI. Likely a race between stop and the running-flag clear; the test should wait for the stop to be observed (or Chat.stop should be synchronous). Seen by Nye during PR #7 review.
jfro added this to the v1.0 milestone 2026-11-01 20:07:12 +00:00
jfro closed this issue 2026-11-01 21:03:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#24
No description provided.