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() {