Commit 9755ae2
test(listener): drop log capture in malformed-listener test
The earlier `capture_log/1` assertion was flaky under async tests: the
returned log buffer is a process-wide snapshot, so unrelated Postgrex
disconnect lines from other concurrent tests would land inside the
capture window and trip the `refute log =~ ~r/\[error\]/` check.
The behavioural guarantee under test ("a malformed listener never
destabilises the enactment") is already covered by the surviving
assertions: the enactment must reach a stable workitem-enabled state
and no listener callback may fire. Drop the log assertion (and the
`import ExUnit.CaptureLog`) accordingly.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 0bf562f commit 9755ae2
3 files changed
Lines changed: 10 additions & 2 deletions
File tree
- lib/coloured_flow
- dsl
- runner/enactment
- test/coloured_flow/runner/enactment
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments