Skip to content

Commit 3bb4c2f

Browse files
committed
BLA
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f0d4782 commit 3bb4c2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/global/cli_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)