command/agent: check err before close (#12574)
This commit is contained in:
parent
70a04dd106
commit
81bb1ef030
|
@ -1113,9 +1113,8 @@ func TestHTTPServer_Limits_OK(t *testing.T) {
|
|||
conf.Address = a.HTTPAddr()
|
||||
conf.TLSConfig.Insecure = true
|
||||
client, err := api.NewClient(conf)
|
||||
defer client.Close()
|
||||
|
||||
require.NoError(t, err)
|
||||
defer client.Close()
|
||||
|
||||
// Assert a blocking query isn't timed out by the
|
||||
// handshake timeout
|
||||
|
|
Loading…
Reference in New Issue