Skip to content

Commit

Permalink
[coordinator] fix flaky test (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antanukas authored Oct 6, 2021
1 parent 5f351fb commit 1c72e40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/query/storage/fanout/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"context"
"errors"
"fmt"
"sort"
"testing"
"time"

Expand Down Expand Up @@ -220,6 +221,10 @@ func TestQueryStorageMetadataAttributesMultipleStores(t *testing.T) {
fetchOpts,
)
require.NoError(t, err)

sort.Slice(attrs, func(i, j int) bool {
return attrs[i].Retention < attrs[j].Retention
})
require.Equal(t, []storagemetadata.Attributes{
{
MetricsType: storagemetadata.AggregatedMetricsType,
Expand Down

0 comments on commit 1c72e40

Please sign in to comment.