Skip to content

Commit e835d48

Browse files
grpc: Fix tests with external dependencies
1 parent 12b0a9b commit e835d48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grpc/server_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ func TestPrepareContext(t *testing.T) {
7979

8080
externalDependencyContext := middleware.ExternalDependencyContextFromContext(ctx3)
8181
require.NotNil(t, externalDependencyContext)
82-
assert.Equal(t, "foo:60000,bar:1000", externalDependencyContext.String())
82+
// Output is sorted by name
83+
assert.Equal(t, "bar:1000,foo:60000", externalDependencyContext.String())
8384

8485
ctx = metadata.NewIncomingContext(context.Background(), metadata.MD{})
8586

0 commit comments

Comments
 (0)