From cfeab9324e657c9173f0a02665ba7593bb602877 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 28 Apr 2017 08:38:57 -0700 Subject: [PATCH] integration: match more TLS errors for wrong certs Fix https://github.com/coreos/etcd/issues/7835. Signed-off-by: Gyu-Ho Lee --- integration/v3_grpc_test.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/integration/v3_grpc_test.go b/integration/v3_grpc_test.go index 6ebc82d23..ccae35b06 100644 --- a/integration/v3_grpc_test.go +++ b/integration/v3_grpc_test.go @@ -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()},