Repository navigation
Commit dd5c6d7
committed
Make the stranded-synchronous-request test deterministic
The driver ticked the queue exactly twice, but the number of queued tasks
depends on thread interleaving: when the synchronous access request is
queued before the first tick, the scheduled beat's work item yields without
executing and is re-queued for a third tick that never came. Drive the
queue from the test thread with the same waitForTasks synchronization the
RuntimeScheduler tests use, asserting each stage.1 parent ebee670 commit dd5c6d7
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
| 175 | + | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
0 commit comments