goproxy
goproxy copied to clipboard
Unit tests fail in tip
- go test -compiler gc -ldflags '-X github.com/elazarl/goproxy/version.GitSHA=a96fa3a318260eab29abaf32f7128c9eb07fb073 -extldflags '''-Wl,-z,relro '''' --- FAIL: TestNoProxyHeaders (0.00s) proxy_test.go:535: Got Connection header from goproxy map[User-Agent:[Go-http-client/1.1] Connection:[close] Accept-Encoding:[gzip]] --- FAIL: TestNoProxyHeadersHttps (0.04s) proxy_test.go:535: Got Connection header from goproxy map[User-Agent:[Go-http-client/1.1] Connection:[close] Accept-Encoding:[gzip]] parse 127.0.0.1:43879: first path segment in URL cannot contain colon:-NewRequest exit status 255 FAIL github.com/elazarl/goproxy 0.451s
(on a centos 7 host)
Still getting this with go version
- go1.9.4 linux/amd64
- go1.10.3 linux/amd64
- go1.10.3 darwin/amd64
--- FAIL: TestNoProxyHeaders (0.00s)
proxy_test.go:535: Got Connection header from goproxy map[User-Agent:[Go-http-client/1.1] Connection:[close] Accept-Encoding:[gzip]]
--- FAIL: TestNoProxyHeadersHttps (0.14s)
proxy_test.go:535: Got Connection header from goproxy map[User-Agent:[Go-http-client/1.1] Connection:[close] Accept-Encoding:[gzip]]
parse 127.0.0.1:37507: first path segment in URL cannot contain colon:-NewRequest
FAIL github.com/elazarl/goproxy 1.597s
Can I be of any support to help debug this? What could be the cause?
Any news on this?
Is this issue still present? We have a CI/CD pipeline that runs for every commit and this error never happened