Skip to content

Commit

Permalink
[chore] [receiver/k8scluster] Fix flaky test (#24917)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Aug 6, 2023
1 parent 55b2f3c commit d31157b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ func TestCollectMetricData(t *testing.T) {
m2 := dc.CollectMetricData(time.Now())

// Second scrape should be the same as the first one except for the timestamp.
assert.NoError(t, pmetrictest.CompareMetrics(m1, m2, pmetrictest.IgnoreTimestamp()))
assert.NoError(t, pmetrictest.CompareMetrics(m1, m2, pmetrictest.IgnoreTimestamp(), pmetrictest.IgnoreResourceMetricsOrder()))
}

0 comments on commit d31157b

Please sign in to comment.