diff options
Diffstat (limited to 'src/crypto/tls/tls_test.go')
| -rw-r--r-- | src/crypto/tls/tls_test.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crypto/tls/tls_test.go b/src/crypto/tls/tls_test.go index 0a791bd7b7..bfcc62ccfb 100644 --- a/src/crypto/tls/tls_test.go +++ b/src/crypto/tls/tls_test.go @@ -935,8 +935,8 @@ func TestCloneNonFuncFields(t *testing.T) { } } // Set the unexported fields related to session ticket keys, which are copied with Clone(). + c1.autoSessionTicketKeys = []ticketKey{c1.ticketKeyFromBytes(c1.SessionTicketKey)} c1.sessionTicketKeys = []ticketKey{c1.ticketKeyFromBytes(c1.SessionTicketKey)} - // We explicitly don't copy autoSessionTicketKeys in Clone, so don't set it. c2 := c1.Clone() if !reflect.DeepEqual(&c1, c2) { @@ -2347,12 +2347,3 @@ func TestECH(t *testing.T) { check() } - -func TestConfigCloneAutoSessionTicketKeys(t *testing.T) { - orig := &Config{} - orig.ticketKeys(nil) - clone := orig.Clone() - if slices.Equal(orig.autoSessionTicketKeys, clone.autoSessionTicketKeys) { - t.Fatal("autoSessionTicketKeys slice copied in Clone") - } -} |
