Commit fc97a40
Assert
Follow-up to review feedback: the helper short-circuited with a bare `return`
on success and only asserted (`Assert.Fail`) on timeout, so the happy path had
no explicit assertion. Restructure the loop to poll until the handler variable
is `$true` or the ~15s window elapses, then assert the outcome once with
`Assert.True(handled, ...)`. Same behavior, but the success and timeout paths
now share a single, self-describing assertion.
Still green on net8.0.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>OnIdle poll result with Assert.True
1 parent a3ba818 commit fc97a40
1 file changed
Lines changed: 8 additions & 8 deletions
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
46 | | - | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments