You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	Use slices.Sort in propagators test instead of sort.Slice (#4991)
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user