Add some comments to the new test.

This commit is contained in:
iamqizhao
2016-03-22 10:56:29 -07:00
parent a098b2c182
commit a31af4bde2

View File

@ -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() {