Skip to content
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

Closed
Scottmitch opened this issue Nov 18, 2016 · 2 comments · Fixed by #8646
Closed

Http2FrameCodecTest use of spy for mocking #6036

Scottmitch opened this issue Nov 18, 2016 · 2 comments · Fixed by #8646
Assignees
Labels
Milestone

Comments

@Scottmitch
Copy link
Member

Scottmitch commented Nov 18, 2016

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 using spy() or work with the mocking folks to identify the root cause.

#5996 (comment)

@Scottmitch
Copy link
Member Author

@buchgr @normanmaurer /cc

@normanmaurer
Copy link
Member

@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 normanmaurer added this to the 4.1.33.Final milestone Dec 27, 2018
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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants