about summary refs log tree commit diff
path: root/tvix/store/src/blobreader.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-02-27T08·12+0100
committerflokli <flokli@flokli.de>2023-03-10T10·58+0000
commite7279b6063b3a4675f8ed37c797254de8a0c79e9 (patch)
treef1eec4e519af00e8798eeacd76919f696c13e557 /tvix/store/src/blobreader.rs
parent28a862976bd43912e0e5dc16e8919590c36f4cf0 (diff)
refactor(tvix/store/tests): move fixtures into separate module r/5929
Change-Id: I362dbf0899e4dc42114fd2e6a8fa7f537e9ea138
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8156
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/store/src/blobreader.rs')
-rw-r--r--tvix/store/src/blobreader.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/tvix/store/src/blobreader.rs b/tvix/store/src/blobreader.rs
index 5fb26228be65..b4e56d909b26 100644
--- a/tvix/store/src/blobreader.rs
+++ b/tvix/store/src/blobreader.rs
@@ -134,23 +134,15 @@ mod tests {
     use super::BlobReader;
     use crate::chunkservice::ChunkService;
     use crate::proto;
+    use crate::tests::fixtures::DUMMY_DATA_1;
+    use crate::tests::fixtures::DUMMY_DATA_2;
+    use crate::tests::fixtures::DUMMY_DIGEST;
     use crate::tests::utils::gen_chunk_service;
-    use lazy_static::lazy_static;
     use std::io::Cursor;
     use std::io::Read;
     use std::io::Write;
     use tempfile::TempDir;
 
-    lazy_static! {
-        static ref DUMMY_DIGEST: Vec<u8> = vec![
-            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-            0x00, 0x00, 0x00, 0x00,
-        ];
-        static ref DUMMY_DATA_1: Vec<u8> = vec![0x01, 0x02, 0x03];
-        static ref DUMMY_DATA_2: Vec<u8> = vec![0x04, 0x05];
-    }
-
     #[test]
     /// reading from a blobmeta with zero chunks should produce zero bytes.
     fn empty_blobmeta() -> anyhow::Result<()> {