mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #3304 from nats-io/tls_check_for_compliant_on_macOS
Fixed TLS test so it passes on macOS
This commit is contained in:
@@ -2624,7 +2624,11 @@ func TestLeafNodeTLSConfigReload(t *testing.T) {
|
||||
// Wait for the error
|
||||
select {
|
||||
case err := <-lg.errCh:
|
||||
if !strings.Contains(err, "unknown") && !strings.Contains(err, "broken") {
|
||||
// Since Go 1.18, we had to regenerate certs to not have to use GODEBUG="x509sha1=1"
|
||||
// But on macOS, with our test CA certs, no SCTs included, it will fail
|
||||
// for the reason "x509: “localhost” certificate is not standards compliant"
|
||||
// instead of "unknown authority".
|
||||
if !strings.Contains(err, "unknown") && !strings.Contains(err, "compliant") {
|
||||
t.Fatalf("Unexpected error: %v", err)
|
||||
}
|
||||
case <-time.After(2 * time.Second):
|
||||
|
||||
Reference in New Issue
Block a user