chore/tests: fix phase::fetch::test_source() with new fixtures location.

This commit is contained in:
elliot speck 2024-09-30 21:45:50 +10:00
parent f83205734b
commit 849a3fcae2
Signed by: arcayr
SSH key fingerprint: SHA256:ACNNWlqwQA5pfEvX1dnTlr8r4fdg1taXA0lae2FSjto
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,6 @@
#[cfg(test)]
mod tests;
mod error; mod error;
mod hash; mod hash;
use std::{ use std::{
@ -13,8 +16,7 @@ pub use manifest::Manifest;
use tracing::{debug, warn}; use tracing::{debug, warn};
pub mod phase; pub mod phase;
#[cfg(test)]
mod tests;
#[derive(strum::Display)] #[derive(strum::Display)]
enum ArchiveType { enum ArchiveType {

View file

@ -17,7 +17,7 @@ const SOURCE_FILE_HASH: &str = "0c984b1b4ebc120d693d33ebda78d26fd91f27614de387c4
fn test_source() -> Source { fn test_source() -> Source {
Source::new( Source::new(
SOURCE_FILE_NAME.to_string(), 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(), Hash::new(HashAlgorithm::Sha2, String::new()).unwrap(),
) )
} }