From 5ce9a8c14a5ac64358530b00427547c6989729e4 Mon Sep 17 00:00:00 2001 From: Zhongyang Wu Date: Sun, 22 Oct 2023 22:49:53 -0700 Subject: [PATCH] fix unit tests --- opentelemetry-jaeger/src/exporter/config/collector/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentelemetry-jaeger/src/exporter/config/collector/mod.rs b/opentelemetry-jaeger/src/exporter/config/collector/mod.rs index deb38ce68d..9b32acc33c 100644 --- a/opentelemetry-jaeger/src/exporter/config/collector/mod.rs +++ b/opentelemetry-jaeger/src/exporter/config/collector/mod.rs @@ -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 } }, @@ -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()