]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.20] crypto/x509: fix broken tests
authorRoland Shoemaker <roland@golang.org>
Wed, 1 Mar 2023 16:39:04 +0000 (08:39 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 1 Mar 2023 21:50:30 +0000 (21:50 +0000)
commit9629fa1874f269cdc488081912afb45a7b34da86
tree28340f509f590219c06469043d85ff89b2a57a42
parent3243f93747227816795bca8f04452fbdc2237e5f
[release-branch.go1.20] crypto/x509: fix broken tests

Convert TestUnknownAuthorityError to use subtests, avoiding continuing
the test after an unrecoverable failure.

Skip TestIssue51759 on pre-macOS 11 builders, which don't enforce the
behavior we were testing for. Also only enable the test on builders.

Updates #58791
Updates #58812
Fixes #58811

Change-Id: I4e3e5bc371aa139d38052184c8232f8cb564138f
Reviewed-on: https://go-review.googlesource.com/c/go/+/472496
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
(cherry picked from commit cf3d0655f8ca2de555549f6e8a91bf8654da7e6c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/472618
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/x509/verify_test.go