Skip to content

Conversation

@royxu6
Copy link
Contributor

@royxu6 royxu6 commented Feb 28, 2020

addresses #213

Only print input format when using dump. Never set this up for connect but inadvertently included print statement. Don't think functionality is useful for connect anyway so just removing the print

@mcpherrinm
Copy link
Contributor

We should have test coverage over this, but in the meantime, we can open a ticket for that

@mcpherrinm
Copy link
Contributor

discussed offline with @captiosus who will write a test

Copy link
Contributor

@mcpherrinm mcpherrinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs test to prevent regression

cli/cli_test.go Outdated
}

func TestConnect(t *testing.T) {
args := []string{"connect", "--verbose", "squareup.com:443"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should spin up a server in the test and connect to it, rather than relying on an outside source.

Maybe use https://golang.org/pkg/net/http/httptest/#Server

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

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