Browse Source

testutil: daemon.Info() close client after request

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 years ago
parent
commit
bbf82b2e53
1 changed files with 1 additions and 0 deletions
  1. 1 0
      testutil/daemon/daemon.go

+ 1 - 0
testutil/daemon/daemon.go

@@ -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
 }