mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
Enable checksum tests if checksum feature is on
These tests fail if checksum feature is turned off.
This commit is contained in:
parent
751261566e
commit
76f2e4e217
1 changed files with 3 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_add_checksum_to_page() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
@ -135,6 +136,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_verify_and_strip_checksum_mismatch() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
@ -160,6 +162,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "checksum")]
|
||||
fn test_verify_and_strip_checksum_corrupted_checksum() {
|
||||
let ctx = ChecksumContext::new();
|
||||
let mut page = get_random_page();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue