Skip to content

Commit bfa4fd2

Browse files
committed
test: Improve OTLP Builder test
1 parent 233d11a commit bfa4fd2

File tree

1 file changed

+8
-4
lines changed
  • opentelemetry-otlp/src/exporter

1 file changed

+8
-4
lines changed

opentelemetry-otlp/src/exporter/mod.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,19 @@ mod tests {
358358
.with_export_config(ex_config)
359359
.build();
360360

361-
assert!(matches!(
361+
assert!(
362+
matches!(
362363
exporter_result,
363364
Err(crate::exporter::ExporterBuildError::InvalidUri(_, _))
364-
));
365+
),
366+
"Expected InvalidUri error, but got {:?}",
367+
exporter_result
368+
);
365369
}
366370

367371
#[cfg(feature = "grpc-tonic")]
368-
#[test]
369-
fn export_builder_error_invalid_grpc_endpoint() {
372+
#[tokio::test]
373+
async fn export_builder_error_invalid_grpc_endpoint() {
370374
use std::time::Duration;
371375

372376
use crate::{ExportConfig, LogExporter, Protocol, WithExportConfig};

0 commit comments

Comments
 (0)