]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: fix broken tests
authorRoland Shoemaker <roland@golang.org>
Wed, 1 Mar 2023 16:39:04 +0000 (08:39 -0800)
committerRoland Shoemaker <roland@golang.org>
Wed, 1 Mar 2023 17:58:52 +0000 (17:58 +0000)
commitcf3d0655f8ca2de555549f6e8a91bf8654da7e6c
tree0db2c753f0cdbc7bd401d497b958d14b35b20ed3
parent61e5ea492905ba71c5c53ad27e72d042e60bb66a
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.

Updates #58791
Fixes #58812

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>
src/crypto/x509/verify_test.go