Skip to content

Commit a646265

Browse files
committed
Fix test 4.2 to test for stream error
The test sends an oversized data frame, so the server is required to reset the stream with FRAME_SIZE_ERROR. The server may treat this error as fatal for the connection and send GOAWAY( FRAME_SIZE_ERROR ), or drop the connection instead. These upgraded errors are already handled by TestStreamError
1 parent aabf5d1 commit a646265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4_2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func FrameSizeTestGroup() *TestGroup {
3333
http2Conn.fr.WriteData(1, true, []byte(dummyData(16385)))
3434

3535
actualCodes := []http2.ErrCode{http2.ErrCodeFrameSize}
36-
return TestConnectionError(ctx, http2Conn, actualCodes)
36+
return TestStreamError(ctx, http2Conn, actualCodes)
3737
},
3838
))
3939

0 commit comments

Comments
 (0)