Skip to content

fix: update safety_margin test for ENTRY_OVERHEAD 104#293

Merged
kacy merged 1 commit intomainfrom
fix/safety-margin-test-overhead
Feb 25, 2026
Merged

fix: update safety_margin test for ENTRY_OVERHEAD 104#293
kacy merged 1 commit intomainfrom
fix/safety-margin-test-overhead

Conversation

@kacy
Copy link
Copy Markdown
Owner

@kacy kacy commented Feb 25, 2026

summary

follow-up to #292 — the safety_margin_rejects_near_raw_limit test hardcoded max_memory: Some(116) based on the old ENTRY_OVERHEAD of 100. with the bump to 104, one entry is now 108 bytes and the effective limit (116 * 90% = 104) no longer matches. updated to max_memory: Some(120) so effective limit = 108.

what was tested

cargo test -p emberkv-core --lib — all 507 tests pass.

adjust max_memory from 116 to 120 to match the new entry size
(1 + 3 + 104 = 108 bytes, effective limit = 120 * 90% = 108).
@kacy kacy merged commit 263da1d into main Feb 25, 2026
7 checks passed
@kacy kacy deleted the fix/safety-margin-test-overhead branch February 25, 2026 13:45
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