Skip to content

Commit

Permalink
test: Refactor new test to match data model
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Oct 22, 2024
1 parent b50615d commit 86407fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
histogram.record(20)

metric_exporter.pull
last_snapshot = metric_exporter.metric_snapshots.last
_(last_snapshot[0].data_points[0].bucket_counts).must_equal([3, 1, 0, 1])
last_snapshot = metric_exporter.metric_snapshots

_(last_snapshot[0].data_points[0].bucket_counts).must_equal([3, 1, 0, 1])
_(last_snapshot[0].name).must_equal('histogram')
_(last_snapshot[0].unit).must_equal('s')
_(last_snapshot[0].description).must_equal('test')
Expand Down

0 comments on commit 86407fd

Please sign in to comment.