瀏覽代碼

testutil: daemon.Info() close client after request

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父節點
當前提交
bbf82b2e53
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
 }