Fix tests in git store
This commit is contained in:
parent
644d2bab23
commit
dd07bbf7ac
@ -323,9 +323,7 @@ impl super::Store for Store {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::origin::store;
|
||||
use crate::origin::store::Store;
|
||||
use crate::origin::{self, Origin};
|
||||
use crate::origin::{self, store};
|
||||
use tempdir::TempDir;
|
||||
|
||||
#[test]
|
||||
@ -383,13 +381,9 @@ mod tests {
|
||||
));
|
||||
assert_eq!(into.len(), 0);
|
||||
|
||||
let descrs = store
|
||||
.all_descrs()
|
||||
.expect("all_descrs called")
|
||||
.into_iter()
|
||||
.collect::<Vec<Result<origin::Descr, store::AllDescrsError>>>();
|
||||
let descrs = store.all_descrs().expect("all_descrs called");
|
||||
|
||||
assert_eq!(1, descrs.len());
|
||||
assert_eq!(&descr, descrs[0].as_ref().unwrap());
|
||||
assert_eq!(descr, descrs[0]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user