chore/tests: fix phase::fetch::test_source() with new fixtures location.
This commit is contained in:
parent
f83205734b
commit
849a3fcae2
2 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue