Commit 09da5ef
authored
Fix async interrupt tests timing out on Windows (#211)
Add a short delay before calling interrupt() in the Database.interrupt()
and Statement.interrupt() tests to ensure the query is actively running
on the tokio runtime. Without the delay, the interrupt flag can be set
before sqlite3_step() starts, causing a race condition where the flag
gets consumed without effect on Windows.1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| 366 | + | |
362 | 367 | | |
363 | 368 | | |
364 | 369 | | |
| |||
0 commit comments