Commit a3ba818
Move
Small follow-up to review feedback: both call sites only ever asserted the
handler variable became `$true`, so the `IReadOnlyList<bool>` return was
needless ceremony. `AssertHandledAsync` now owns the assertion — it returns
once the variable reports `$true` and otherwise fails via `Assert.Fail` when
the ~15s poll window elapses, which reads as "the OnIdle handler never ran."
`Assert.Fail` is fine here — we're on xUnit 2.9.3 and already use it in the
E2E tests. No behavior change to what's being verified; the call sites just
shrink to a single `await OnIdleTestHelpers.AssertHandledAsync(...)`. Still
green on net8.0.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>OnIdle assertion into helper and drop list return1 parent f1393db commit a3ba818
1 file changed
Lines changed: 10 additions & 15 deletions
Lines changed: 10 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
| 41 | + | |
45 | 42 | | |
46 | | - | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| 48 | + | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 237 | + | |
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
| |||
330 | 327 | | |
331 | 328 | | |
332 | 329 | | |
333 | | - | |
334 | | - | |
335 | | - | |
| 330 | + | |
336 | 331 | | |
337 | 332 | | |
338 | 333 | | |
0 commit comments