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

Refactored the test files with helpers to test backend #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yangchenyun
Copy link

@yangchenyun yangchenyun commented Apr 11, 2018

Refactored the test by extracting the following two methods:

func testRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string)
func testNotRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string) <-chan bool

This change is Reviewable

```
func testRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string)
func testNotRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string) <-chan bool
```
@yangchenyun
Copy link
Author

Ping for a look.

@yangchenyun
Copy link
Author

ping?

@bradfitz
Copy link
Collaborator

The returned channel is weird.

And the helpers are both undocumented.

What's the point of this? The PR just says it's "refactored" ... but why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants