aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-07 12:28:18 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commit012bf0593df7bf93afb73db5c87dd8ccc36e851f (patch)
tree7606ed25710a058012e8ffb8bda736bbfd6a1a3f /src/tests
parentreorganize file structure and cleanup lints (diff)
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.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/mod.rs4
1 files changed, 2 insertions, 2 deletions
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());