Commit e496e62
committed
test(qwp): scope Invariant-B test exception swallows to close-path noise only (M6)
The broad catch (Exception ignored) around whole test bodies let the
Invariant-B pin tests pass vacuously: fromConfig/builder/first-flush/setup
failures were swallowed, skipping every contract assertion.
- ReconnectTest.testReconnectNeverGivesUpInvariantB: hoist fromConfig out
of the swallow; confine the catch to sender.close() in a finally.
- InitialConnectAsyncTest: add closeQuietly(Sender) and use it in
testAsyncDeliversBufferedRowsWhenServerArrivesLate,
testConnectionLostRetriesForeverNoTerminal, and
testWasEverConnectedTrueImmediatelyInSyncMode; drop the outer catches.
- testConnectionLostRetriesForeverNoTerminal additionally had a bare
finally { sender.close(); } whose close-path exception could REPLACE a
pending AssertionError and get swallowed by the outer catch -- i.e. a
broken feature (terminal delivered, close() rethrows it) actively
masked the assertion failure. closeQuietly in the finally closes that
path too.1 parent 4340371 commit e496e62
2 files changed
Lines changed: 42 additions & 16 deletions
File tree
- core/src/test/java/io/questdb/client/test/cutlass/qwp/client
Lines changed: 31 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | | - | |
192 | | - | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
225 | | - | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| |||
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
269 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
270 | 276 | | |
271 | | - | |
272 | | - | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
276 | 280 | | |
277 | | - | |
| 281 | + | |
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
| |||
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
290 | | - | |
| 294 | + | |
| 295 | + | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
| 299 | + | |
| 300 | + | |
294 | 301 | | |
295 | | - | |
296 | | - | |
297 | 302 | | |
298 | 303 | | |
299 | 304 | | |
| |||
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
319 | 338 | | |
320 | 339 | | |
321 | 340 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| |||
0 commit comments