diff --git a/metrics_sdk/test/opentelemetry/sdk/metrics/instrument/histogram_test.rb b/metrics_sdk/test/opentelemetry/sdk/metrics/instrument/histogram_test.rb index 7113f64b1c..031c455c6a 100644 --- a/metrics_sdk/test/opentelemetry/sdk/metrics/instrument/histogram_test.rb +++ b/metrics_sdk/test/opentelemetry/sdk/metrics/instrument/histogram_test.rb @@ -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')