diff --git a/tracing-attributes/tests/instrument.rs b/tracing-attributes/tests/instrument.rs index 2897316be..bd78fddf4 100644 --- a/tracing-attributes/tests/instrument.rs +++ b/tracing-attributes/tests/instrument.rs @@ -52,6 +52,7 @@ fn override_everything() { fn fields() { #[instrument(target = "my_target", level = "debug")] fn my_fn(arg1: usize, arg2: bool, arg3: String) {} + fn my_fn(arg1: usize, arg2: bool, arg3: String) {} let span = expect::span() .named("my_fn") @@ -69,6 +70,7 @@ fn fields() { .with_value(&2usize) .and(expect::field("arg2").with_value(&false)) .and(expect::field("arg3").with_value(&"Cool".to_string())) + .and(expect::field("arg3").with_value(&"Cool".to_string())) .only(), ), ) @@ -81,6 +83,7 @@ fn fields() { .with_value(&3usize) .and(expect::field("arg2").with_value(&true)) .and(expect::field("arg3").with_value(&"Still Cool".to_string())) + .and(expect::field("arg3").with_value(&"Still Cool".to_string())) .only(), ), ) @@ -90,7 +93,7 @@ fn fields() { .only() .run_with_handle(); - with_default(collector, || { + with_default(subscriber, || { my_fn(2, false, "Cool".to_string()); my_fn(3, true, "Still Cool".to_string()); });