Fix tests in git store

This commit is contained in:
Brian Picciano 2023-06-25 14:07:37 +02:00
parent 644d2bab23
commit dd07bbf7ac

View File

@ -323,9 +323,7 @@ impl super::Store for Store {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::origin::store; use crate::origin::{self, store};
use crate::origin::store::Store;
use crate::origin::{self, Origin};
use tempdir::TempDir; use tempdir::TempDir;
#[test] #[test]
@ -383,13 +381,9 @@ mod tests {
)); ));
assert_eq!(into.len(), 0); assert_eq!(into.len(), 0);
let descrs = store let descrs = store.all_descrs().expect("all_descrs called");
.all_descrs()
.expect("all_descrs called")
.into_iter()
.collect::<Vec<Result<origin::Descr, store::AllDescrsError>>>();
assert_eq!(1, descrs.len()); assert_eq!(1, descrs.len());
assert_eq!(&descr, descrs[0].as_ref().unwrap()); assert_eq!(descr, descrs[0]);
} }
} }