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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-09-30 14:22:48 +02:00
parent 279ddb31ef
commit ce2e8e37d0
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

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