From ce2e8e37d05a2d80241caadbc8a7489461371f43 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 30 Sep 2019 14:22:48 +0200 Subject: [PATCH] testutil: update WithTestLogger to use daemon.Option as return type Signed-off-by: Sebastiaan van Stijn --- testutil/daemon/ops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/daemon/ops.go b/testutil/daemon/ops.go index df8033657b..0964810a2c 100644 --- a/testutil/daemon/ops.go +++ b/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 }