Skip to content

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