Skip to content

Commit

Permalink
test(processors.parser): Sort test metrics
Browse files Browse the repository at this point in the history
CircleCI complained about test failures where results were not in the
same order. Sort the metrics to ensure a consistent ordering.
  • Loading branch information
powersj committed May 22, 2024
1 parent 6f29422 commit 05abc98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/processors/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,9 @@ func TestApply(t *testing.T) {

// check timestamp when using with-timestamp merge type
if tt.merge == "override-with-timestamp" {
testutil.RequireMetricsEqual(t, tt.expected, output)
testutil.RequireMetricsEqual(t, tt.expected, output, testutil.SortMetrics())
} else {
testutil.RequireMetricsEqual(t, tt.expected, output, testutil.IgnoreTime())
testutil.RequireMetricsEqual(t, tt.expected, output, testutil.SortMetrics(), testutil.IgnoreTime())
}
})
}
Expand Down

0 comments on commit 05abc98

Please sign in to comment.