-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Http2FrameCodecTest use of spy for mocking #6036
Comments
@buchgr @normanmaurer /cc |
@Scottmitch I will take a crack on this.... |
normanmaurer
added a commit
that referenced
this issue
Dec 10, 2018
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.
normanmaurer
added a commit
that referenced
this issue
Dec 14, 2018
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.
normanmaurer
added a commit
that referenced
this issue
Dec 28, 2018
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
spy()
from mocking can cause exceptions to be thrown while stepping through and debugging a test. This can prevent from debugging and create a makings distinguishing between real issues and mocking framework issues difficult. We should consider not usingspy()
or work with the mocking folks to identify the root cause.#5996 (comment)
The text was updated successfully, but these errors were encountered: