internal: transport_test init expected byte slice to be not all zero (#2643)

This commit is contained in:
Menghan Li
2019-02-14 09:51:36 -08:00
committed by GitHub
parent 1dbad57dad
commit 6d026ae45a

View File

@ -64,6 +64,13 @@ var (
expectedInvalidHeaderField = "invalid/content-type"
)
func init() {
expectedRequestLarge[0] = 'g'
expectedRequestLarge[len(expectedRequestLarge)-1] = 'r'
expectedResponseLarge[0] = 'p'
expectedResponseLarge[len(expectedResponseLarge)-1] = 'c'
}
type testStreamHandler struct {
t *http2Server
notify chan struct{}