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
c0e3253214
commit
cccf90f1d8
1 changed files with 12 additions and 12 deletions
|
@ -26,24 +26,24 @@ func TestSetHostHeader(t *testing.T) {
|
|||
expectedURLHost string
|
||||
}{
|
||||
{
|
||||
"unix:///var/run/docker.sock",
|
||||
"docker",
|
||||
"/var/run/docker.sock",
|
||||
host: "unix:///var/run/docker.sock",
|
||||
expectedHost: "docker",
|
||||
expectedURLHost: "/var/run/docker.sock",
|
||||
},
|
||||
{
|
||||
"npipe:////./pipe/docker_engine",
|
||||
"docker",
|
||||
"//./pipe/docker_engine",
|
||||
host: "npipe:////./pipe/docker_engine",
|
||||
expectedHost: "docker",
|
||||
expectedURLHost: "//./pipe/docker_engine",
|
||||
},
|
||||
{
|
||||
"tcp://0.0.0.0:4243",
|
||||
"",
|
||||
"0.0.0.0:4243",
|
||||
host: "tcp://0.0.0.0:4243",
|
||||
expectedHost: "",
|
||||
expectedURLHost: "0.0.0.0:4243",
|
||||
},
|
||||
{
|
||||
"tcp://localhost:4243",
|
||||
"",
|
||||
"localhost:4243",
|
||||
host: "tcp://localhost:4243",
|
||||
expectedHost: "",
|
||||
expectedURLHost: "localhost:4243",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue