-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clean up Client and Server integration tests #1675
Comments
I will take this issue and work on it! |
Would you have something in mind as well? @seanmonstar |
@seanmonstar is it still open? :) |
Yes, this is still open because the integration tests feel very messy, and there's a lot of repeated code. I'm sorry I haven't been able to provide much guidance on how to improve them, if I thought about it a lot, I'd probably fix them myself :) |
Well, if it's very messy so we could improve it a little each PR, for example let's remove (as many as possible) repeated code first. If you feel ok with this approach I could try it :) (hopefully it's easy as labelled :D). |
I'd like to try and tackle this one if it hasn't been done yet! The tests seem quite long though... |
Yea, it's not done yet. Admittedly, this is between an easy and medium task. For example, in |
Ok great, I'll slowly work on this then. |
This is a part of hyperium#1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating a Tokio server.
This is a part of hyperium#1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating a std server.
Hi @seanmonstar This PR doesn't provide any significant changes but allows to make one step in decreasing code duplication. If it's the wrong way, please, just reject the PR. If it brings something useful, then I can continue with it. Thanks |
This is a part of #1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating a Tokio server.
This is a continuation of work on hyperium#1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating tcp listener for tests.
This is a continuation of work on hyperium#1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating tcp listener for tests.
This is a continuation of work on hyperium#1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating tcp listener for tests.
This is a continuation of work on #1675 issue. It slightly reduces the number of duplicated code by using one common function for init a logger and creating tcp listener for tests.
Both the client and server tests (
tests/client.rs
andtests/server.rs
) started with small abstractions, but they weren't flexible enough, and so as more complicated cases were needed, the tests just got more and more complicated, with a lot of repetition. It'd be huge to find a way to refactor them.The text was updated successfully, but these errors were encountered: