Skip to content

Commit ddb4378

Browse files
add the dogstatsd url validator call in dd url tests (#143)
1 parent 65eb3d0 commit ddb4378

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • crates/datadog-agent-config/src

crates/datadog-agent-config/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ pub mod tests {
789789
config.dd_url,
790790
"https://test.agent.datadoghq.com".to_string()
791791
);
792+
dogstatsd::datadog::DdDdUrl::new(config.dd_url.clone())
793+
.expect("DD_DD_URL with a trailing slash should still parse");
792794
Ok(())
793795
});
794796
}
@@ -813,6 +815,8 @@ pub mod tests {
813815

814816
let config = get_config(Path::new(""));
815817
assert_eq!(config.url, "https://test.datadoghq.com".to_string());
818+
dogstatsd::datadog::DdUrl::new(config.url.clone())
819+
.expect("DD_URL with a trailing slash should still parse");
816820
Ok(())
817821
});
818822
}

0 commit comments

Comments
 (0)