diff --git a/test/end2end_test.go b/test/end2end_test.go index 27179ee3..14f86b1b 100644 --- a/test/end2end_test.go +++ b/test/end2end_test.go @@ -80,6 +80,7 @@ var ( "tkey1": []string{"trailerValue1"}, "tkey2": []string{"trailerValue2"}, } + // capital "Key" is illegal in HTTP/2. malformedHTTP2Metadata = metadata.MD{ "Key": []string{"foo"}, } @@ -892,6 +893,8 @@ func testMetadataUnaryRPC(t *testing.T, e env) { } } +// TestMalformedHTTP2Metedata verfies the returned error when the client +// sends an illegal metadata. func TestMalformedHTTP2Metadata(t *testing.T) { defer leakCheck(t)() for _, e := range listTestEnv() {