Commit d743f27
fix(selftest): stabilize HostControlMountFunc and Tab/RadioButtons selection fixtures (#139)
Three flake clusters in `Reactor.AppTests.Host --self-test` (18/100 run-fail
rate before; 0/100 after for the targeted clusters across a 100x sweep):
- `HostCtrlFunc_Mounted/Initial/Updated`: standalone ReactorHostControl doesn't
register with ReactorApp.ActiveHost, so Harness.Render() can't wait on its
render loop. Use Harness.Render(200) to give wall-clock time, matching the
sibling HostControlMountComponent/HostControlFactory fixtures.
- `TabViewSel_*` and `RadioButtonsSel_*`: TabView and RadioButtons can raise
SelectionChanged via the dispatcher rather than synchronously in the
SelectedIndex setter (unlike ComboBox/ListView/GridView/FlipView/Pivot).
Pump once with Harness.Render() between the mutation and the assertion so
the queued event lands before the counter is read.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f91176e commit d743f27
2 files changed
Lines changed: 15 additions & 2 deletions
File tree
- tests/Reactor.AppTests.Host/SelfTest/Fixtures
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | 213 | | |
204 | 214 | | |
| |||
0 commit comments