Skip to content

Commit

Permalink
Update neqo-transport/src/connection/tests/stream.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <[email protected]>
Signed-off-by: Lars Eggert <[email protected]>
  • Loading branch information
larseggert and martinthomson authored Dec 12, 2024
1 parent 5e9054c commit 190f101
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions neqo-transport/src/connection/tests/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,9 @@ fn illegal_stream_frames() {
// 0 = Client-Initiated, Bidirectional; 2 = Client-Initiated, Unidirectional
for stream_id in [0, 2] {
// Illegal RESET_STREAM frame
test_with_illegal_frame(&[FRAME_TYPE_RESET_STREAM, stream_id, 0, 0]);
// Illegal STOP_SENDING frame
test_with_illegal_frame(&[FRAME_TYPE_STOP_SENDING, stream_id, 0]);
// Illegal MAX_STREAM_DATA frame
test_with_illegal_frame(&[FRAME_TYPE_MAX_STREAM_DATA, stream_id, 0]);
// Illegal STREAM_DATA_BLOCKED frame
test_with_illegal_frame(&[FRAME_TYPE_STREAM_DATA_BLOCKED, stream_id, 0]);
// Illegal STREAM frame
test_with_illegal_frame(&[FRAME_TYPE_STREAM_CLIENT_INI_BIDI, stream_id, 0]);
for frame_type in [FRAME_TYPE_RESET_STREAM, ...] {
test_with_illegal_frame(&[frame_type, stream_id, 0, 0]);
}
}
}

Expand Down

0 comments on commit 190f101

Please sign in to comment.