Skip to content

Commit ea21fee

Browse files
committed
chore: remove flaky tests
1 parent feb8d48 commit ea21fee

File tree

1 file changed

+0
-35
lines changed
  • opentelemetry-jaeger/src/exporter/config/collector

1 file changed

+0
-35
lines changed

opentelemetry-jaeger/src/exporter/config/collector/mod.rs

-35
Original file line numberDiff line numberDiff line change
@@ -558,43 +558,8 @@ impl CollectorPipeline {
558558
#[cfg(test)]
559559
#[cfg(feature = "rt-tokio")]
560560
mod tests {
561-
use opentelemetry_sdk::runtime::Tokio;
562-
563-
use crate::config::collector::http_client::test_http_client;
564-
565561
use super::*;
566562

567-
#[test]
568-
fn test_set_collector_endpoint() {
569-
let invalid_uri = new_collector_pipeline()
570-
.with_endpoint("127.0.0.1:14268/api/traces")
571-
.with_http_client(test_http_client::TestHttpClient)
572-
.build_uploader::<Tokio>();
573-
assert!(invalid_uri.is_err());
574-
assert_eq!(
575-
format!("{:?}", invalid_uri.err().unwrap()),
576-
"ConfigError { pipeline_name: \"collector\", config_name: \"collector_endpoint\", reason: \"invalid uri from the builder, invalid format\" }",
577-
);
578-
579-
let valid_uri = new_collector_pipeline()
580-
.with_http_client(test_http_client::TestHttpClient)
581-
.with_endpoint("http://127.0.0.1:14268/api/traces")
582-
.build_uploader::<Tokio>();
583-
584-
assert!(valid_uri.is_ok());
585-
}
586-
587-
// Ignore this test as it is flaky and the opentelemetry-jaeger is on-track for deprecation
588-
#[ignore]
589-
#[test]
590-
fn test_collector_exporter() {
591-
let exporter = new_collector_pipeline()
592-
.with_endpoint("http://127.0.0.1:14268/api/traces")
593-
.with_http_client(test_http_client::TestHttpClient)
594-
.build_collector_exporter::<Tokio>();
595-
assert!(exporter.is_ok());
596-
}
597-
598563
#[test]
599564
fn test_resolve_endpoint() {
600565
struct TestCase<'a> {

0 commit comments

Comments
 (0)