testutil: daemon.Info() close client after request

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-18 18:09:41 +02:00
parent 1e000435e6
commit bbf82b2e53
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -721,6 +721,7 @@ func (d *Daemon) Info(t testing.TB) types.Info {
c := d.NewClientT(t)
info, err := c.Info(context.Background())
assert.NilError(t, err)
assert.NilError(t, c.Close())
return info
}