]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] 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:56 +0000 (21:50 +0000)
commit0d288f90c4da361044b5876bf15985abb98fae07
treed4d3dc1f98691016e9adbdf0105703b392e54988
parent21e451ec446724c9f3f124139e07d88ff812a1bc
[release-branch.go1.19] 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 #58810

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/+/472617
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/x509/verify_test.go