Skip to content

Commit

Permalink
test(flamegraph): Fix flakey test for profile examples (#504)
Browse files Browse the repository at this point in the history
* test(flamegraph): Fix flakey test for profile examples
  • Loading branch information
Zylphrex authored Aug 12, 2024
1 parent 084ac3e commit b25c119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
- Generalize chunk task input ([#486](https://github.com/getsentry/vroom/pull/486))
- Use builtin min/max functions ([#497](https://github.com/getsentry/vroom/pull/497))
- Lift Intervals struct to utils ([#498](https://github.com/getsentry/vroom/pull/498))
- Fix flakey test for profile examples ([#504](https://github.com/getsentry/vroom/pull/504))

## 23.12.0

Expand Down
4 changes: 4 additions & 0 deletions internal/flamegraph/flamegraph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ func TestAnnotatingWithExamples(t *testing.T) {
}

options := cmp.Options{
// This option will order profile examples since we only want to compare values and not order.
cmpopts.SortSlices(func(a, b string) bool {
return a < b
}),
// This option will order profile IDs since we only want to compare values and not order.
cmpopts.SortSlices(func(a, b utils.ExampleMetadata) bool {
if a.ProjectID != b.ProjectID {
Expand Down

0 comments on commit b25c119

Please sign in to comment.