We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0319b56 commit d69cbccCopy full SHA for d69cbcc
opentelemetry-sdk/src/metrics/meter_provider.rs
@@ -403,7 +403,12 @@ mod tests {
403
let meter = global::meter("test");
404
let counter = meter.u64_counter("test_counter").init();
405
// no need to drop a meter for meter_provider shutdown
406
- provider.shutdown().unwrap();
+ let shutdown_res = provider.shutdown();
407
+ assert!(shutdown_res.is_ok());
408
+
409
+ // shutdown once more should return an error
410
411
+ assert!(shutdown_res.is_err());
412
assert!(reader.is_shutdown());
413
// TODO Fix: the instrument is still available, and can be used.
414
// While the reader is shutdown, and no collect is happening
0 commit comments