Skip to content

Fix failing tests run in parallel#13

Open
explodes wants to merge 1 commit into
nimrodshn:masterfrom
explodes:explodes/fix-tests
Open

Fix failing tests run in parallel#13
explodes wants to merge 1 commit into
nimrodshn:masterfrom
explodes:explodes/fix-tests

Conversation

@explodes
Copy link
Copy Markdown

Running tests in parallel (default behavior) means that multiple tests will work with the /tmp/db and /tmp/wal files simultaneously, resulting in unpredictable tests.

Using self-deleting tempdirs, we can work around this.

Note that the WAL is automatically placed in the same directory as the db with a fixed name, so this temp directory actually creates a unique, safe place for the WAL file as well.

Running tests in parallel (default behavior) means that multiple tests will work with the /tmp/db file.
This results in unpredicable test results.
Using self-deleting tempdirs, we can work around this.
Note that the WAL is automatically placed in the same directory as the db with a fixed name, so this
temp directory actually creates a unique, safe place for the WAL file as well.
@explodes explodes marked this pull request as ready for review April 11, 2026 11:33
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