Browse code

testutil: daemon.Info() close client after request

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/19 01:09:41
Showing 1 changed files
... ...
@@ -721,6 +721,7 @@ func (d *Daemon) Info(t testing.TB) types.Info {
721 721
 	c := d.NewClientT(t)
722 722
 	info, err := c.Info(context.Background())
723 723
 	assert.NilError(t, err)
724
+	assert.NilError(t, c.Close())
724 725
 	return info
725 726
 }
726 727