Skip to content

Commit a04683a

Browse files
committed
Add wait before calling shutdown
1 parent 45ad6d6 commit a04683a

File tree

1 file changed

+3
-0
lines changed
  • opentelemetry-otlp/tests/integration_test/tests

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub async fn test_logs() -> Result<()> {
4848
log::set_max_level(Level::Info.to_level_filter());
4949

5050
info!(target: "my-target", "hello from {}. My price is {}.", "banana", 2.99);
51+
52+
// TODO: remove below wait before calling logger_provider.shutdown()
53+
tokio::time::sleep(Duration::from_secs(10)).await;
5154
let _ = logger_provider.shutdown();
5255

5356
tokio::time::sleep(Duration::from_secs(10)).await;

0 commit comments

Comments
 (0)