mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Add unix socket test to TestNewURLsValue
(cherry picked from commit 75747f24bcdebefff22e27853f2ac0b71ec91ea0) Signed-off-by: Hubert Zhang <hubert.zyk@gmail.com>
This commit is contained in:
parent
1a9062ec98
commit
80e2064b40
@ -53,6 +53,9 @@ func TestNewURLsValue(t *testing.T) {
|
||||
{s: "http://10.1.1.1:80", exp: []url.URL{{Scheme: "http", Host: "10.1.1.1:80"}}},
|
||||
{s: "http://localhost:80", exp: []url.URL{{Scheme: "http", Host: "localhost:80"}}},
|
||||
{s: "http://:80", exp: []url.URL{{Scheme: "http", Host: ":80"}}},
|
||||
{s: "unix://tmp/etcd.sock", exp: []url.URL{{Scheme: "unix", Host: "tmp", Path: "/etcd.sock"}}},
|
||||
{s: "unix:///tmp/127.27.84.4:23432", exp: []url.URL{{Scheme: "unix", Path: "/tmp/127.27.84.4:23432"}}},
|
||||
{s: "unix://127.0.0.5:1456", exp: []url.URL{{Scheme: "unix", Host: "127.0.0.5:1456"}}},
|
||||
{
|
||||
s: "http://localhost:1,https://localhost:2",
|
||||
exp: []url.URL{
|
||||
|
Loading…
x
Reference in New Issue
Block a user