Skip to content

Fix async interrupt tests timing out on Windows#211

Merged
penberg merged 1 commit intomainfrom
fix-windows-interrupt-test
Mar 18, 2026
Merged

Fix async interrupt tests timing out on Windows#211
penberg merged 1 commit intomainfrom
fix-windows-interrupt-test

Conversation

@penberg
Copy link
Copy Markdown
Contributor

@penberg penberg commented Mar 17, 2026

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.

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.
@penberg penberg merged commit 09da5ef into main Mar 18, 2026
15 of 16 checks passed
@penberg penberg deleted the fix-windows-interrupt-test branch March 18, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant