Skip to content

Commit

Permalink
subscriber: fix layer test error message (#784)
Browse files Browse the repository at this point in the history
## Motivation

Test error message was incorrect.

## Solution

This PR makes a 1-character change to a test error message.
  • Loading branch information
keetonian committed Jul 7, 2020
1 parent 1d03546 commit e58a869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-subscriber/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ pub(crate) mod tests {
assert_eq!(&layer.0, "layer_1");
let layer = Subscriber::downcast_ref::<StringLayer2>(&s).expect("layer 2 should downcast");
assert_eq!(&layer.0, "layer_2");
let layer = Subscriber::downcast_ref::<StringLayer3>(&s).expect("layer 13 should downcast");
let layer = Subscriber::downcast_ref::<StringLayer3>(&s).expect("layer 3 should downcast");
assert_eq!(&layer.0, "layer_3");
}
}

0 comments on commit e58a869

Please sign in to comment.