client: TestSetHostHeader: don't use un-keyed literals
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 2a59188760
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
d5591a4e5f
commit
65468a2bef
1 changed files with 12 additions and 12 deletions
|
@ -28,24 +28,24 @@ func TestSetHostHeader(t *testing.T) {
|
||||||
expectedURLHost string
|
expectedURLHost string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
"unix:///var/run/docker.sock",
|
host: "unix:///var/run/docker.sock",
|
||||||
"docker",
|
expectedHost: "docker",
|
||||||
"/var/run/docker.sock",
|
expectedURLHost: "/var/run/docker.sock",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"npipe:////./pipe/docker_engine",
|
host: "npipe:////./pipe/docker_engine",
|
||||||
"docker",
|
expectedHost: "docker",
|
||||||
"//./pipe/docker_engine",
|
expectedURLHost: "//./pipe/docker_engine",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tcp://0.0.0.0:4243",
|
host: "tcp://0.0.0.0:4243",
|
||||||
"",
|
expectedHost: "",
|
||||||
"0.0.0.0:4243",
|
expectedURLHost: "0.0.0.0:4243",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tcp://localhost:4243",
|
host: "tcp://localhost:4243",
|
||||||
"",
|
expectedHost: "",
|
||||||
"localhost:4243",
|
expectedURLHost: "localhost:4243",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue