Skip to content

Commit

Permalink
unit test default endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ramgdev committed Mar 3, 2024
1 parent 04593ec commit 277df67
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions opentelemetry-otlp/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,19 @@ mod tests {
);
}

#[cfg(feature = "http-json")]
#[test]
fn test_default_http_json_endpoint() {
use crate::WithExportConfig;

let exporter_builder = crate::new_exporter().http().with_protocol(crate::Protocol::HttpJson);

assert_eq!(
exporter_builder.exporter_config.endpoint,
"http://localhost:4318"
);
}

#[test]
fn test_url_decode() {
let test_cases = vec![
Expand Down

0 comments on commit 277df67

Please sign in to comment.