From 5b7a79e7150bf69c9fdd58290fb4c0fd5b9c7e1a Mon Sep 17 00:00:00 2001 From: taylor thompson Date: Sat, 8 Apr 2023 11:00:25 +0300 Subject: [PATCH] Fix tests --- libs/build/src/references.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/build/src/references.rs b/libs/build/src/references.rs index 8f15608..1ac351b 100644 --- a/libs/build/src/references.rs +++ b/libs/build/src/references.rs @@ -184,7 +184,7 @@ mod tests { link_tree.insert(title.into(), vec!["wiki page".into()]); let links: GlobalBacklinks = Arc::new(Mutex::new(link_tree)); let path = get_file_path(title).unwrap(); - let note = path_to_data_structure(&path).await.unwrap(); + let note = path_to_data_structure(&path).unwrap(); update_global_store(title, ¬e, links.clone()).await; let updated_links = links.lock().await; let entry = updated_links.get(title).unwrap(); @@ -216,7 +216,7 @@ mod tests { link_tree.insert(title.into(), vec!["wiki page".into()]); let links: GlobalBacklinks = Arc::new(Mutex::new(link_tree)); let path = get_file_path(title).unwrap(); - let note = path_to_data_structure(&path).await.unwrap(); + let note = path_to_data_structure(&path).unwrap(); delete_from_global_store(title, ¬e, links.clone()).await; let updated_links = links.lock().await; let entry = updated_links.get(title);