]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: fix test data generation
authorJonathan Rudenberg <jonathan@titanous.com>
Wed, 15 Apr 2015 19:00:53 +0000 (15:00 -0400)
committerAdam Langley <agl@golang.org>
Thu, 16 Apr 2015 18:16:37 +0000 (18:16 +0000)
commitc1e73dd2868fde5cbb00e8c290afdf3171bca5e6
treebc31e6bdb6071daa8790c940caabc15183d438c9
parent9cde36be54cb106d00cc6446117a2f2999d9928a
crypto/tls: fix test data generation

- Multiple GetCertificate tests shared the same name and were
  overwriting each other, each test now has a unique name.
- expectAlert was not implemented in the data updater, the single
  test that used it has been replaced with a ClientHello failure
  test.

Fixes #10470

Change-Id: I500738f6302ffa863d7ee45d85fa8773155e0614
Reviewed-on: https://go-review.googlesource.com/8959
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
src/crypto/tls/handshake_server_test.go
src/crypto/tls/testdata/Server-TLSv12-SNI-GetCertificate [new file with mode: 0644]
src/crypto/tls/testdata/Server-TLSv12-SNI-GetCertificateNotFound [new file with mode: 0644]