Repository navigation
Commit 2e1adc0
test(timeout): give the settings tests' database the suite's 1 GiB max_db_size
On the C-API backend, every test_timeout.py test that uses the conn fixture
failed at random in setup with "Buffer manager exception: Mmap for size
8796093022208 failed." The fixture opened lb.Database(":memory:") with the
default max_db_size, which reserves 8 TiB of address space. By then 14
default-size databases from test_fsm.py, test_database.py and test_exception.py
are still mapped, because the C-API Database frees its native database only in
close() or at exit. The rest of the 128 TiB is often split into gaps smaller
than 8 TiB. The fixture now passes max_db_size like the conftest's databases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 49837b1 commit 2e1adc0
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments