File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func TestTCPSchemeUsesHTTPProxyEnv(t *testing.T) {
4848 const responseJSON = `{"Version": "99.99.9", "ApiVersion": "1.41", "MinAPIVersion": "1.12"}`
4949 var received string
5050 proxyServer := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
51- received = r .Header . Get ( "User-Agent" )
51+ received = r .UserAgent () + "/" + r . Host + "/" + r . URL . Host + "/" + r . RequestURI + "/" + r . Proto
5252 w .Header ().Set ("Content-Type" , "application/json" )
5353 _ , _ = w .Write ([]byte (responseJSON ))
5454 }))
@@ -64,5 +64,8 @@ func TestTCPSchemeUsesHTTPProxyEnv(t *testing.T) {
6464 // Verify the command ran successfully, and that it connected to the proxyServer
6565 result .Assert (t , icmd .Success )
6666 assert .Equal (t , strings .TrimSpace (result .Stdout ()), "99.99.9" )
67+
68+ // === FAIL: e2e/global TestTCPSchemeUsesHTTPProxyEnv (0.03s)
69+ // cli_test.go:67: assertion failed: Go-http-client/1.1 (received string) != Docker-Client/unknown-version (linux) (string)
6770 assert .Equal (t , received , command .UserAgent ())
6871}
You can’t perform that action at this time.
0 commit comments