aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/repository/vcs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/repository/vcs')
-rw-r--r--crates/shirabe/tests/repository/vcs/forgejo_driver_test.rs7
-rw-r--r--crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs2
2 files changed, 6 insertions, 3 deletions
diff --git a/crates/shirabe/tests/repository/vcs/forgejo_driver_test.rs b/crates/shirabe/tests/repository/vcs/forgejo_driver_test.rs
index d9138b0c..46d3832d 100644
--- a/crates/shirabe/tests/repository/vcs/forgejo_driver_test.rs
+++ b/crates/shirabe/tests/repository/vcs/forgejo_driver_test.rs
@@ -123,6 +123,7 @@ fn repo_body() -> String {
);
m
}))
+ .unwrap()
}
#[test]
@@ -175,7 +176,8 @@ fn test_get_branches() {
entry.insert("name".to_string(), PhpMixed::String("main".to_string()));
entry.insert("commit".to_string(), PhpMixed::Array(commit));
entry
- })]));
+ })]))
+ .unwrap();
let (http_downloader, _http_guard) = http_mock(vec![
expect_full(
@@ -217,7 +219,8 @@ fn test_get_tags() {
entry.insert("name".to_string(), PhpMixed::String("1.0".to_string()));
entry.insert("commit".to_string(), PhpMixed::Array(commit));
entry
- })]));
+ })]))
+ .unwrap();
let (http_downloader, _http_guard) = http_mock(vec![
expect_full(
diff --git a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs
index 2dd968ce..aa89040d 100644
--- a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs
+++ b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs
@@ -513,7 +513,7 @@ fn test_get_paginated_refs() {
"2013-03-09T16:35:23.000+01:00",
));
}
- let branch_data = shirabe::json::JsonFile::encode(&PhpMixed::List(branch_data));
+ let branch_data = shirabe::json::JsonFile::encode(&PhpMixed::List(branch_data)).unwrap();
let (http_downloader, _guard) = get_http_downloader_mock(
vec![