Skip to content

Commit

Permalink
Auto merge of #260 - pch07/metrics_src_lib_quick_test_fix, r=lennartk…
Browse files Browse the repository at this point in the history
…loock

1 line test adjustment
Changed a test line from:
`assert_eq!(sum.is_monotonic, true);`
to
`assert!(sum.is_monotonic);`.

That is all.

Requested-by: lennartkloock <[email protected]>
Reviewed-by: lennartkloock <[email protected]>
  • Loading branch information
scuffle-brawl[bot] authored Jan 20, 2025
2 parents fa14d64 + 49e0521 commit 4442703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ mod tests {
.downcast_ref()
.expect("wrong data type");
assert_eq!(sum.temporality, opentelemetry_sdk::metrics::Temporality::Cumulative);
assert_eq!(sum.is_monotonic, true);
assert!(sum.is_monotonic);
assert_eq!(sum.data_points.len(), 1);
assert_eq!(sum.data_points[0].value, 1);
assert_eq!(sum.data_points[0].attributes.len(), 1);
Expand Down

0 comments on commit 4442703

Please sign in to comment.