Browse code

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

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

Sebastiaan van Stijn authored on 2019/09/30 21:22:48
Showing 1 changed files
... ...
@@ -17,7 +17,7 @@ func WithDefaultCgroupNamespaceMode(mode string) Option {
17 17
 }
18 18
 
19 19
 // WithTestLogger causes the daemon to log certain actions to the provided test.
20
-func WithTestLogger(t testing.TB) func(*Daemon) {
20
+func WithTestLogger(t testing.TB) Option {
21 21
 	return func(d *Daemon) {
22 22
 		d.log = t
23 23
 	}