From 012bf0593df7bf93afb73db5c87dd8ccc36e851f Mon Sep 17 00:00:00 2001 From: Max Audron Date: Tue, 7 Jun 2022 12:28:18 +0200 Subject: move to mostly sync architecture the git repository struct is not sharable between threads, thus go single threaded for now and only call onto the tokio runtime for lookups towards gitlab. --- src/tests/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/mod.rs') diff --git a/src/tests/mod.rs b/src/tests/mod.rs index 0d32dbf..3e0f7af 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -48,9 +48,9 @@ async fn search_repos() -> Result<()> { format!("{:?}/repos/site/group/subgroup/repo3", TEST_DIR), format!("{:?}/repos/site/group/subgroup/subsubgroup/repo4", TEST_DIR), ]; - let right = Repos::from_local(&format!("{:?}/repos", TEST_DIR), "").await; + let right = Repos::from_local(&format!("{:?}/repos", TEST_DIR), ""); - let mut right: Vec<&str> = right.iter().map(|x| x.name.as_str()).collect(); + let mut right: Vec<&str> = right.iter().map(|x| x.0.as_str()).collect(); assert_eq!(left.sort(), right.sort_unstable()); -- cgit v1.2.3