Browse Source

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>
Gyu-Ho Lee 8 years ago
parent
commit
156722e26a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      e2e/etcd_config_test.go

+ 1 - 1
e2e/etcd_config_test.go

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