Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyCpp committed Oct 29, 2023
1 parent 481bdd4 commit 5ce9a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-jaeger/src/exporter/config/collector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ impl CollectorPipeline {
Some(timeout) => match timeout.parse() {
Ok(timeout) => Duration::from_millis(timeout),
Err(e) => {
eprintln!("{} malformed defaulting to 10s: {}", ENV_TIMEOUT, e);
eprintln!("{} malformed default to 10s: {}", ENV_TIMEOUT, e);
self.collector_timeout
}
},
Expand Down Expand Up @@ -558,7 +558,7 @@ mod tests {
assert!(invalid_uri.is_err());
assert_eq!(
format!("{:?}", invalid_uri.err().unwrap()),
"ConfigError { pipeline_name: \"collector\", config_name: \"collector_endpoint\", reason: \"invalid uri, invalid format\" }",
"ConfigError { pipeline_name: \"collector\", config_name: \"collector_endpoint\", reason: \"invalid uri from the builder, invalid format\" }",
);

let valid_uri = new_collector_pipeline()
Expand Down

0 comments on commit 5ce9a8c

Please sign in to comment.