clientv3/integration: Add err check to TestDialTLSNoConfig to prevent nil pointer dereference on c.Close()

This commit is contained in:
Joe Betz 2018-05-25 13:59:37 -07:00 committed by Gyuho Lee
parent 05c57a0ea4
commit 3b84117f54

View File

@ -79,6 +79,9 @@ func TestDialTLSNoConfig(t *testing.T) {
DialTimeout: time.Second,
DialOptions: []grpc.DialOption{grpc.WithBlock()},
})
if err != nil {
t.Fatal(err)
}
defer c.Close()
// TODO: this should not be required when we set grpc.WithBlock()