|
@@ -9,7 +9,6 @@ import ( |
|
|
"crypto/x509" |
|
|
"crypto/x509" |
|
|
"errors" |
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"internal/testenv" |
|
|
|
|
|
"io" |
|
|
"io" |
|
|
"io/ioutil" |
|
|
"io/ioutil" |
|
|
"math" |
|
|
"math" |
|
@@ -331,8 +330,6 @@ func TestTLSUniqueMatches(t *testing.T) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func TestVerifyHostname(t *testing.T) { |
|
|
func TestVerifyHostname(t *testing.T) { |
|
|
testenv.MustHaveExternalNetwork(t) |
|
|
|
|
|
|
|
|
|
|
|
c, err := Dial("tcp", "www.google.com:https", nil) |
|
|
c, err := Dial("tcp", "www.google.com:https", nil) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
t.Fatal(err) |
|
|
t.Fatal(err) |
|
@@ -357,8 +354,6 @@ func TestVerifyHostname(t *testing.T) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func TestVerifyHostnameResumed(t *testing.T) { |
|
|
func TestVerifyHostnameResumed(t *testing.T) { |
|
|
testenv.MustHaveExternalNetwork(t) |
|
|
|
|
|
|
|
|
|
|
|
config := &Config{ |
|
|
config := &Config{ |
|
|
ClientSessionCache: NewLRUClientSessionCache(32), |
|
|
ClientSessionCache: NewLRUClientSessionCache(32), |
|
|
} |
|
|
} |
|
|