Enable checksum tests if checksum feature is on

These tests fail if checksum feature is turned off.
This commit is contained in:
Kacper Kołodziej
2025-09-22 10:45:38 +02:00
parent 751261566e
commit 76f2e4e217

View File

@@ -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();