From 8a25d55690d81eb37b15315002c3df91f90160a7 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Fri, 26 Apr 2024 13:39:03 -0400 Subject: update tests to use `CreateHookOptionConfig` fields --- tests/ci_test.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/ci_test.rs b/tests/ci_test.rs index 925dc2e..0d03074 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -403,13 +403,9 @@ async fn admin() { authorization_header: None, branch_filter: None, config: CreateHookOptionConfig { - // content_type: "json".into(), - // url: url::Url::parse("http://test.local/").unwrap(), - additional: [ - ("content_type".into(), "json".into()), - ("url".into(), "http://test.local/".into()), - ] - .into(), + content_type: "json".into(), + url: url::Url::parse("http://test.local/").unwrap(), + additional: Default::default(), }, events: Some(Vec::new()), r#type: CreateHookOptionType::Gitea, -- cgit v1.2.3