mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: match more TLS errors for wrong certs
Fix https://github.com/coreos/etcd/issues/7835. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
77fd369b1c
commit
cfeab9324e
@ -1518,14 +1518,12 @@ func TestTLSReloadCopy(t *testing.T) {
|
||||
for {
|
||||
cc, err := ts.ClientConfig()
|
||||
if err != nil {
|
||||
// from concurrent certs overwriting
|
||||
switch err.Error() {
|
||||
case "tls: private key does not match public key":
|
||||
fallthrough
|
||||
case "tls: failed to find any PEM data in key input":
|
||||
continue
|
||||
}
|
||||
t.Fatal(err)
|
||||
// errors in 'go/src/crypto/tls/tls.go'
|
||||
// tls: private key does not match public key
|
||||
// tls: failed to find any PEM data in key input
|
||||
// tls: failed to find any PEM data in certificate input
|
||||
t.Log(err)
|
||||
continue
|
||||
}
|
||||
cli, cerr := clientv3.New(clientv3.Config{
|
||||
Endpoints: []string{clus.Members[0].GRPCAddr()},
|
||||
|
Loading…
x
Reference in New Issue
Block a user