better test of list_roots
This commit is contained in:
parent
acee884967
commit
2d1a3b9ba7
1 changed files with 3 additions and 3 deletions
|
@ -340,6 +340,7 @@ mod tests {
|
|||
true,
|
||||
);
|
||||
assert!(foo_result.is_ok());
|
||||
let foo_result = foo_result.unwrap();
|
||||
|
||||
let bar_result = fetch_or_create_dir(
|
||||
&open_result.pool.get().unwrap(),
|
||||
|
@ -359,9 +360,8 @@ mod tests {
|
|||
assert!(baz_result.is_ok());
|
||||
let baz_result = baz_result.unwrap();
|
||||
|
||||
let orphans = list_roots(&open_result.pool.get().unwrap());
|
||||
assert!(orphans.is_ok());
|
||||
assert_eq!(orphans.unwrap().len(), 2);
|
||||
let roots = list_roots(&open_result.pool.get().unwrap());
|
||||
assert_eq!(roots.unwrap(), [foo_result, bar_result.clone()]);
|
||||
|
||||
let resolve_result = resolve_path(
|
||||
&open_result.pool.get().unwrap(),
|
||||
|
|
Loading…
Reference in a new issue