Commit 0e86a90
fix(query-engine): make abort-on-drop test actually falsifiable
roborev (job 200) on d90a0a7: the regression test checked a flag set
after a 60s sleep, but only waited 50ms before asserting — so it
passed even with AbortOnDrop::drop() doing nothing, since 50ms never
approaches 60s either way. Confirmed by temporarily neutering the
abort call: the old test still passed.
Rewrote it to check ongoing progress instead: the wrapped task
increments a counter on a 5ms cadence, the test waits for it to start,
drops the guard, then asserts the counter stops advancing. Verified
this version fails without the real abort call and passes with it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PR8ENqodwuB1o8k4YAcjcJ1 parent d90a0a7 commit 0e86a90
1 file changed
Lines changed: 30 additions & 9 deletions
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | | - | |
156 | | - | |
| 163 | + | |
| 164 | + | |
157 | 165 | | |
158 | | - | |
159 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
160 | 170 | | |
161 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
164 | 184 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
168 | 189 | | |
169 | 190 | | |
170 | 191 | | |
0 commit comments