@@ -558,43 +558,8 @@ impl CollectorPipeline {
558
558
#[ cfg( test) ]
559
559
#[ cfg( feature = "rt-tokio" ) ]
560
560
mod tests {
561
- use opentelemetry_sdk:: runtime:: Tokio ;
562
-
563
- use crate :: config:: collector:: http_client:: test_http_client;
564
-
565
561
use super :: * ;
566
562
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
-
598
563
#[ test]
599
564
fn test_resolve_endpoint ( ) {
600
565
struct TestCase < ' a > {
0 commit comments