Skip to content

Commit 81c9de0

Browse files
committed
A few tests are not passing because they are not compatible with the tonic-client request, which is enabled by default.
1 parent dac8bd5 commit 81c9de0

File tree

1 file changed

+4
-2
lines changed
  • opentelemetry-otlp/tests/integration_test/tests

1 file changed

+4
-2
lines changed

opentelemetry-otlp/tests/integration_test/tests/logs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ mod logtests {
255255
// current thread
256256
#[test]
257257
#[cfg(feature = "reqwest-blocking-client")]
258+
#[cfg(not(feature = "tonic-client"))]
258259
pub fn logs_batch_non_tokio_main_with_init_logs_outside_rt() -> Result<()> {
259260
logs_non_tokio_helper(false, false)
260261
}
@@ -295,7 +296,8 @@ mod logtests {
295296
// Client - Reqwest-blocking
296297
#[test]
297298
#[cfg(feature = "reqwest-blocking-client")]
298-
pub fn logs_simple_non_tokio_main_with_init_logs_outsie_rt_blocking() -> Result<()> {
299+
#[cfg(not(feature = "tonic-client"))]
300+
pub fn logs_simple_non_tokio_main_with_init_logs_outside_rt_blocking() -> Result<()> {
299301
logs_non_tokio_helper(true, false)
300302
}
301303

@@ -309,7 +311,7 @@ mod logtests {
309311
feature = "tonic-client",
310312
feature = "reqwest-client"
311313
))]
312-
pub fn logs_simple_non_tokio_main_with_init_logs_outsie_rt() -> Result<()> {
314+
pub fn logs_simple_non_tokio_main_with_init_logs_outside_rt() -> Result<()> {
313315
logs_non_tokio_helper(true, false)
314316
}
315317

0 commit comments

Comments
 (0)