mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
add more testing cases
Signed-off-by: zhangsheng02 <sheng.zhang@daocloud.io>
This commit is contained in:
parent
14d2440b87
commit
dadc2ad385
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user