Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d69cbcc

Browse files
committedMay 11, 2024
one more test
1 parent 0319b56 commit d69cbcc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎opentelemetry-sdk/src/metrics/meter_provider.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,12 @@ mod tests {
403403
let meter = global::meter("test");
404404
let counter = meter.u64_counter("test_counter").init();
405405
// no need to drop a meter for meter_provider shutdown
406-
provider.shutdown().unwrap();
406+
let shutdown_res = provider.shutdown();
407+
assert!(shutdown_res.is_ok());
408+
409+
// shutdown once more should return an error
410+
let shutdown_res = provider.shutdown();
411+
assert!(shutdown_res.is_err());
407412
assert!(reader.is_shutdown());
408413
// TODO Fix: the instrument is still available, and can be used.
409414
// While the reader is shutdown, and no collect is happening

0 commit comments

Comments
 (0)
Please sign in to comment.