better test of list_roots

feat/vaults
Tomáš Mládek 2021-12-21 11:26:20 +01:00
parent acee884967
commit 2d1a3b9ba7
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 3 additions and 3 deletions

View File

@ -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(),