Skip to content
Commit Detail

Commit 08cd9b6

Author
Justin Mazzola Paluska <jmp@cloudflare.com> 2025-10-16 13:27:20 -0400
Parents
821a113
Tree
6b6d859
Reset SQLite heap limit after test

The SQLite heap limits are process-wide, so setting it in a test will
affect all tests that run later.  I plan on adding more tests to this
file and while I _could_ ensure this test is always last in the file,
it’s better reset the value at the end of the test.

I had to take a direct dependency on sqlite3 because you can only
lower the hard heap limit with the `PRAGMA hard_heap_limit`.  To raise
the limit you must use the `sqlite3_hard_heap_limit64` function.

Files changed

2 files changed~2 modified