Skip to content

Commit

Permalink
fix attrs order in test
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Dec 12, 2024
1 parent f05d8f0 commit 8b9f93c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libs/telemetry/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,11 @@ mod tests {

assert_ron_snapshot!(
events,
{ ".*" => redact_id(), ".*[].**" => redact_id() },
{
".*" => redact_id(),
".*[].**" => redact_id(),
".*[].attributes" => insta::sorted_redaction()
},
@r#"
{
RequestId(1): [
Expand All @@ -964,8 +968,8 @@ mod tests {
name: "event",
level: Info,
attributes: {
"message": "test event",
"kept_attr": "kept",
"message": "test event",
},
),
],
Expand Down

0 comments on commit 8b9f93c

Please sign in to comment.