Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions opentelemetry-otlp/tests/integration_test/tests/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ mod metrictests {
);

// In tokio::current_thread flavor, shutdown must be done in a separate thread
let _res = Handle::current()
let shutdown_resut = Handle::current()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit shutdown_result all the places.

.spawn_blocking(move || meter_provider.shutdown())
.await
.unwrap();
assert!(shutdown_resut.is_ok());
// We still need to sleep, to give otel-collector a chance to flush to disk
std::thread::sleep(SLEEP_DURATION);

Expand Down Expand Up @@ -101,7 +102,8 @@ mod metrictests {
],
);

meter_provider.shutdown()?;
let shutdown_resut = meter_provider.shutdown();
assert!(shutdown_resut.is_ok());
// We still need to sleep, to give otel-collector a chance to flush to disk
std::thread::sleep(SLEEP_DURATION);

Expand All @@ -127,7 +129,8 @@ mod metrictests {
],
);

meter_provider.shutdown()?;
let shutdown_resut = meter_provider.shutdown();
assert!(shutdown_resut.is_ok());
// We still need to sleep, to give otel-collector a chance to flush to disk
std::thread::sleep(SLEEP_DURATION);

Expand Down