mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/integration: Add err check to TestDialTLSNoConfig to prevent nil pointer dereference on c.Close()
This commit is contained in:
parent
05c57a0ea4
commit
3b84117f54
@ -79,6 +79,9 @@ func TestDialTLSNoConfig(t *testing.T) {
|
|||||||
DialTimeout: time.Second,
|
DialTimeout: time.Second,
|
||||||
DialOptions: []grpc.DialOption{grpc.WithBlock()},
|
DialOptions: []grpc.DialOption{grpc.WithBlock()},
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
defer c.Close()
|
defer c.Close()
|
||||||
|
|
||||||
// TODO: this should not be required when we set grpc.WithBlock()
|
// TODO: this should not be required when we set grpc.WithBlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user