浏览代码

testutil: update WithTestLogger to use daemon.Option as return type

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父节点
当前提交
ce2e8e37d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      testutil/daemon/ops.go

+ 1 - 1
testutil/daemon/ops.go

@@ -17,7 +17,7 @@ func WithDefaultCgroupNamespaceMode(mode string) Option {
 }
 
 // WithTestLogger causes the daemon to log certain actions to the provided test.
-func WithTestLogger(t testing.TB) func(*Daemon) {
+func WithTestLogger(t testing.TB) Option {
 	return func(d *Daemon) {
 		d.log = t
 	}