Skip to content

Commit 11d1622

Browse files
committed
chore: Update variable name used in unit test
1 parent faf9208 commit 11d1622

File tree

1 file changed

+6
-1
lines changed
  • crates/stackable-telemetry/src/tracing

1 file changed

+6
-1
lines changed

crates/stackable-telemetry/src/tracing/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ mod test {
887887
let enable_otlp_trace = true;
888888
let enable_otlp_log = false;
889889

890-
let tracing_builder = Tracing::builder()
890+
let tracing_guard = Tracing::builder()
891891
.service_name("test")
892892
.with_console_output(enable_console_output.then(|| {
893893
Settings::builder()
@@ -912,6 +912,11 @@ mod test {
912912
}))
913913
.build();
914914

915+
assert!(tracing_guard.console_log_settings.is_enabled());
916+
assert!(tracing_guard.file_log_settings.is_enabled());
917+
assert!(tracing_guard.otlp_trace_settings.is_enabled());
918+
assert!(tracing_guard.otlp_log_settings.is_disabled());
919+
}
915920

916921
#[test]
917922
fn pre_configured() {

0 commit comments

Comments
 (0)