Skip to content

Commit

Permalink
Use slices.Sort in propagators test instead of sort.Slice (#4991)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Feb 29, 2024
1 parent 4ea22d3 commit ec8e6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions propagation/propagation_test.go
Expand Up @@ -5,7 +5,7 @@ package propagation_test

import (
"context"
"sort"
"slices"
"strings"
"testing"

Expand Down Expand Up @@ -119,6 +119,6 @@ func TestMapCarrierKeys(t *testing.T) {
}

keys := carrier.Keys()
sort.Strings(keys)
slices.Sort(keys)
assert.Equal(t, []string{"baz", "foo"}, keys)
}

0 comments on commit ec8e6ea

Please sign in to comment.