// Go communicates with the platform and different platforms return different messages. Go itself tests darwin
if!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
// differently for its message. On newer versions of Darwin the message includes the "Acme Co" portion while older
// versions of Darwin do not. As there are people developing Helm using both old and new versions of Darwin we test
// for both messages.
ifruntime.GOOS=="darwin"{
if!strings.Contains(err.Error(),"x509: “Acme Co” certificate is not trusted")&&!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
t.Errorf("Expected TLS error for function FindChartInAuthAndTLSAndPassRepoURL not found, but got a different error (%v)",err)
}
}elseif!strings.Contains(err.Error(),"x509: certificate signed by unknown authority"){
t.Errorf("Expected TLS error for function FindChartInAuthAndTLSAndPassRepoURL not found, but got a different error (%v)",err)
t.Errorf("Expected TLS error for function FindChartInAuthAndTLSAndPassRepoURL not found, but got a different error (%v)",err)