forked from quic-go/quic-go
http3: simplify connection closing in the frame parser (#5196)
No functional change expected.
This commit is contained in:
@@ -37,8 +37,8 @@ func TestParserReservedFrameType(t *testing.T) {
|
||||
data = append(data, []byte("foobar")...)
|
||||
|
||||
fp := frameParser{
|
||||
r: bytes.NewReader(data),
|
||||
conn: client,
|
||||
r: bytes.NewReader(data),
|
||||
closeConn: client.CloseWithError,
|
||||
}
|
||||
_, err := fp.ParseNext()
|
||||
require.Error(t, err)
|
||||
|
||||
Reference in New Issue
Block a user