diff --git a/pkg/kubelet/util/util_unix_test.go b/pkg/kubelet/util/util_unix_test.go index 5ebeb2372e1..1234a0a0ad2 100644 --- a/pkg/kubelet/util/util_unix_test.go +++ b/pkg/kubelet/util/util_unix_test.go @@ -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