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,
|
true,
|
||||||
);
|
);
|
||||||
assert!(foo_result.is_ok());
|
assert!(foo_result.is_ok());
|
||||||
|
let foo_result = foo_result.unwrap();
|
||||||
|
|
||||||
let bar_result = fetch_or_create_dir(
|
let bar_result = fetch_or_create_dir(
|
||||||
&open_result.pool.get().unwrap(),
|
&open_result.pool.get().unwrap(),
|
||||||
|
@ -359,9 +360,8 @@ mod tests {
|
||||||
assert!(baz_result.is_ok());
|
assert!(baz_result.is_ok());
|
||||||
let baz_result = baz_result.unwrap();
|
let baz_result = baz_result.unwrap();
|
||||||
|
|
||||||
let orphans = list_roots(&open_result.pool.get().unwrap());
|
let roots = list_roots(&open_result.pool.get().unwrap());
|
||||||
assert!(orphans.is_ok());
|
assert_eq!(roots.unwrap(), [foo_result, bar_result.clone()]);
|
||||||
assert_eq!(orphans.unwrap().len(), 2);
|
|
||||||
|
|
||||||
let resolve_result = resolve_path(
|
let resolve_result = resolve_path(
|
||||||
&open_result.pool.get().unwrap(),
|
&open_result.pool.get().unwrap(),
|
||||||
|
|
Loading…
Reference in a new issue