Commit ae4ee81
committed
Update integration test to accept more error outcomes
The 'exceeding timeout' test now accepts three possible outcomes:
- {:ok, _, _} - query completes before timeout
- {:error, %Error{message: "interrupted"}} - progress handler interrupts
- {:error, %Error{message: "out of memory"}} - OOM during interrupt cleanup
The last case occurs when inserting 10,001 rows and immediately selecting with
1ms timeout - SQLite can exhaust memory during interrupted query cleanup.
This is correct behavior - the query is properly interrupted, the connection
remains usable, and the error is surfaced appropriately.1 parent d6ff376 commit ae4ee81
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
| |||
0 commit comments