1
0
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:
Tyler Yahn 2024-02-28 23:36:03 -08:00 committed by GitHub
parent 4ea22d37ac
commit ec8e6ea61f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}