diff --git a/src/crypto/tls/common_test.go b/src/crypto/tls/common_test.go deleted file mode 100644 index 226d7c32c28..00000000000 --- a/src/crypto/tls/common_test.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2020 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package tls_test - -import ( - "crypto/tls" - "testing" -) - -func TestCloneNilConfig(t *testing.T) { - var config *tls.Config - if cc := config.Clone(); cc != nil { - t.Fatalf("Clone with nil should return nil, got: %+v", cc) - } -} diff --git a/src/crypto/tls/tls_test.go b/src/crypto/tls/tls_test.go index 198423414b9..b408b2a2c25 100644 --- a/src/crypto/tls/tls_test.go +++ b/src/crypto/tls/tls_test.go @@ -841,6 +841,13 @@ func TestCloneNonFuncFields(t *testing.T) { } } +func TestCloneNilConfig(t *testing.T) { + var config *Config + if cc := config.Clone(); cc != nil { + t.Fatalf("Clone with nil should return nil, got: %+v", cc) + } +} + // changeImplConn is a net.Conn which can change its Write and Close // methods. type changeImplConn struct {