From 362471dc680969811db38c467ab0901256f7b81e Mon Sep 17 00:00:00 2001 From: Zhang Zhihui Date: Wed, 29 Apr 2020 05:18:10 +0900 Subject: [PATCH] etcd2topo/server_test: add err check Signed-off-by: Zhang Zhihui --- go/vt/topo/etcd2topo/server_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/topo/etcd2topo/server_test.go b/go/vt/topo/etcd2topo/server_test.go index 7e2a0784b96..ffe72c4b13f 100644 --- a/go/vt/topo/etcd2topo/server_test.go +++ b/go/vt/topo/etcd2topo/server_test.go @@ -141,6 +141,9 @@ func startEtcdWithTLS(t *testing.T) (string, *tlstest.ClientServerKeyPairs, func } tlsConfig, err := tlsInfo.ClientConfig() + if err != nil { + t.Fatalf("failed to get tls.Config: %v", err) + } var cli *clientv3.Client // Create client