From ee479d2e5206bffdbe7e596cf5107a2a3d2aed77 Mon Sep 17 00:00:00 2001 From: Avinash Sajjanshetty Date: Mon, 13 Oct 2025 13:47:25 +0530 Subject: [PATCH] Move all checksum tests behind the feature flag --- core/storage/checksum.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/storage/checksum.rs b/core/storage/checksum.rs index a67376048..4fb024f1c 100644 --- a/core/storage/checksum.rs +++ b/core/storage/checksum.rs @@ -94,6 +94,7 @@ impl Default for ChecksumContext { } #[cfg(test)] +#[cfg(feature = "checksum")] mod tests { use super::*; @@ -110,7 +111,6 @@ mod tests { } #[test] - #[cfg(feature = "checksum")] fn test_add_checksum_to_page() { let ctx = ChecksumContext::new(); let mut page = get_random_page(); @@ -139,7 +139,6 @@ mod tests { } #[test] - #[cfg(feature = "checksum")] fn test_verify_and_strip_checksum_mismatch() { let ctx = ChecksumContext::new(); let mut page = get_random_page(); @@ -165,7 +164,6 @@ mod tests { } #[test] - #[cfg(feature = "checksum")] fn test_verify_and_strip_checksum_corrupted_checksum() { let ctx = ChecksumContext::new(); let mut page = get_random_page();