client: TestSetHostHeader: don't use un-keyed literals
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0c2699da27
commit
2a59188760
1 changed files with 12 additions and 12 deletions
|
@ -28,24 +28,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