Skip to content

Commit

Permalink
fix for failed lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Oct 7, 2023
1 parent 7c3ae17 commit 6c412e8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ func checkServerRecords(t *testing.T, reader metric.Reader) {
assert.NoError(t, err)
require.Len(t, rm.ScopeMetrics, 1)
require.Len(t, rm.ScopeMetrics[0].Metrics, 5)
for _, metric := range rm.ScopeMetrics[0].Metrics {
require.IsType(t, metric.Data, metricdata.Histogram[int64]{})
data := metric.Data.(metricdata.Histogram[int64])
for _, m := range rm.ScopeMetrics[0].Metrics {
require.IsType(t, m.Data, metricdata.Histogram[int64]{})
data := m.Data.(metricdata.Histogram[int64])
for _, dpt := range data.DataPoints {
attr := dpt.Attributes.ToSlice()
method := getRPCMethod(attr)
Expand All @@ -618,9 +618,9 @@ func checkClientRecords(t *testing.T, reader metric.Reader) {
assert.NoError(t, err)
require.Len(t, rm.ScopeMetrics, 1)
require.Len(t, rm.ScopeMetrics[0].Metrics, 5)
for _, metric := range rm.ScopeMetrics[0].Metrics {
require.IsType(t, metric.Data, metricdata.Histogram[int64]{})
data := metric.Data.(metricdata.Histogram[int64])
for _, m := range rm.ScopeMetrics[0].Metrics {
require.IsType(t, m.Data, metricdata.Histogram[int64]{})
data := m.Data.(metricdata.Histogram[int64])
for _, dpt := range data.DataPoints {
attr := dpt.Attributes.ToSlice()
method := getRPCMethod(attr)
Expand Down

0 comments on commit 6c412e8

Please sign in to comment.