diff --git a/crates/ia/src/lib.rs b/crates/ia/src/lib.rs index 9cfc615..1c400e5 100644 --- a/crates/ia/src/lib.rs +++ b/crates/ia/src/lib.rs @@ -1,3 +1,6 @@ +#[cfg(test)] +mod tests; + mod error; mod hash; use std::{ @@ -13,8 +16,7 @@ pub use manifest::Manifest; use tracing::{debug, warn}; pub mod phase; -#[cfg(test)] -mod tests; + #[derive(strum::Display)] enum ArchiveType { diff --git a/crates/ia/src/tests/phase/fetch/mod.rs b/crates/ia/src/tests/phase/fetch/mod.rs index 33c735b..9400ee8 100644 --- a/crates/ia/src/tests/phase/fetch/mod.rs +++ b/crates/ia/src/tests/phase/fetch/mod.rs @@ -17,7 +17,7 @@ const SOURCE_FILE_HASH: &str = "0c984b1b4ebc120d693d33ebda78d26fd91f27614de387c4 fn test_source() -> Source { Source::new( SOURCE_FILE_NAME.to_string(), - String::from("file:./fixtures/package/source-test.txt"), + String::from("file:../../fixtures/package/source-test.txt"), Hash::new(HashAlgorithm::Sha2, String::new()).unwrap(), ) }