From ed0c8382b93fd095701a0cb4bb9769a9f7870ba7 Mon Sep 17 00:00:00 2001 From: Sven Cowart Date: Fri, 24 Oct 2025 16:10:19 -0700 Subject: [PATCH] fix retry_classification tests - Add #[cfg(feature = "experimental-http-retry")] gate to http_tests module - Replace wildcard imports with explicit imports in test modules - Remove unused imports from parent tests module - Move Duration import into http_tests submodule scope --- opentelemetry-otlp/src/retry_classification.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opentelemetry-otlp/src/retry_classification.rs b/opentelemetry-otlp/src/retry_classification.rs index c65a7685d4..b490dfd1a7 100644 --- a/opentelemetry-otlp/src/retry_classification.rs +++ b/opentelemetry-otlp/src/retry_classification.rs @@ -163,13 +163,12 @@ pub mod grpc { #[cfg(test)] mod tests { - use super::*; - use std::time::Duration; - // Tests for HTTP error classification + #[cfg(feature = "experimental-http-retry")] mod http_tests { - use super::*; + use crate::retry::RetryErrorType; use crate::retry_classification::http::*; + use std::time::Duration; #[test] fn test_http_429_with_retry_after_seconds() {