mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-26 21:05:00 +02:00
Use slices.Sort in propagators test instead of sort.Slice (#4991)
This commit is contained in:
parent
4ea22d37ac
commit
ec8e6ea61f
@ -5,7 +5,7 @@ package propagation_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sort"
|
||||
"slices"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user