add more testing cases

Signed-off-by: zhangsheng02 <sheng.zhang@daocloud.io>
This commit is contained in:
zhangsheng02 2020-07-24 09:32:34 +08:00
parent 14d2440b87
commit dadc2ad385

View File

@ -151,7 +151,7 @@ func TestGetAddressAndDialer(t *testing.T) {
expectedAddr: "/tmp/f6.sock",
},
{
endpoint: "tco:/localhost:9090",
endpoint: "tcp://localhost:9090",
expectError: true,
},
{
@ -159,6 +159,14 @@ func TestGetAddressAndDialer(t *testing.T) {
endpoint: "htta://free-test.com",
expectError: true,
},
{
endpoint: "https://www.youtube.com/",
expectError: true,
},
{
endpoint: "http://www.baidu.com/",
expectError: true,
},
}
for _, test := range tests {
// just test addr and err