-
-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup HTTP/2 tests for Http2FrameCodec and Http2MultiplexCodec #8646
Conversation
a359f72
to
5893d4e
Compare
Looks like you're still iterating on this. Please feel free to ping me when you want it reviewed. |
5893d4e
to
83d6e63
Compare
@bryce-anderson now... forgot to commit a change. |
83d6e63
to
86b0507
Compare
Motiviation: Http2FrameCodecTest and Http2MultiplexCodecTest were quite fragile and often not went through the whole pipeline which made testing sometimes hard and error-prone. Modification: - Refactor tests to have data flow through the whole pipeline and so made the test more robust (by testing the while implementation). Result: Easier to write tests for the codecs in the future and more robust testing in general. Beside this it also fixes #6036.
86b0507
to
09fe6b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, though I must admit that I wasn't very thorough: this is a whole lot of code to review that I haven't spent a lot of time looking at.
@@ -415,27 +415,11 @@ final void onChannelReadComplete(ChannelHandlerContext ctx) { | |||
} | |||
|
|||
// Allow to override for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is no longer true.
@bryce-anderson thanks fore the review.. I also addressed your comment (good catch). |
Motiviation: Http2FrameCodecTest and Http2MultiplexCodecTest were quite fragile and often not went through the whole pipeline which made testing sometimes hard and error-prone. Modification: - Refactor tests to have data flow through the whole pipeline and so made the test more robust (by testing the while implementation). Result: Easier to write tests for the codecs in the future and more robust testing in general. Beside this it also fixes #6036.
Motiviation: Http2FrameCodecTest and Http2MultiplexCodecTest were quite fragile and often not went through the whole pipeline which made testing sometimes hard and error-prone. Modification: - Refactor tests to have data flow through the whole pipeline and so made the test more robust (by testing the while implementation). Result: Easier to write tests for the codecs in the future and more robust testing in general. Beside this it also fixes #6036.
Motiviation:
Http2FrameCodecTest and Http2MultiplexCodecTest were quite fragile and often not went through the whole pipeline which made testing sometimes hard and error-prone.
Modification:
Result:
Easier to write tests for the codecs in the future and more robust testing in general.
Beside this it also fixes #6036.