e2e: fix remote error string in TestEtcdPeerCNAuth

Now error is embed: rejected connection from "127.0.0.1:58527" (error "remote error: tls: bad certificate", ServerName "").
Change from https://github.com/coreos/etcd/pull/8952.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee 2017-12-01 12:54:29 -08:00
parent 3537582bcf
commit 156722e26a

View File

@ -183,7 +183,7 @@ func TestEtcdPeerCNAuth(t *testing.T) {
if i <= 1 {
expect = etcdServerReadyLines
} else {
expect = []string{"(remote error: tls: bad certificate)"}
expect = []string{"remote error: tls: bad certificate"}
}
if err := waitReadyExpectProc(p, expect); err != nil {
t.Fatal(err)