Skip to content

Conversation

@gozeloglu
Copy link
Contributor

  • renamed: cmd/flag.go --> cmd/proxy.go

Changes

I added tests for proxyCmd() function.

* renamed: cmd/flag.go --> cmd/proxy.go
@gozeloglu gozeloglu requested a review from hmert September 21, 2021 21:48
Copy link
Member

@hmert hmert left a comment

Choose a reason for hiding this comment

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

i think that proxy test should be with a proxy server. Basically, if in a proxy server may change a string, then test runner could understand the connection is in proxy.

https://github.com/go-httpproxy/httpproxy

@gozeloglu
Copy link
Contributor Author

Hi @hmert. Actually, these tests are only test proxyCmd() function running whether successfully. Does it really necessary to involve proxy server? If yes, I did not understand how can I refactor tests with proxy server.

@gozeloglu gozeloglu merged commit 332ee47 into main Sep 23, 2021
@gozeloglu gozeloglu deleted the proxy-test branch September 23, 2021 14:08
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.

3 participants