mirror of
https://github.com/moby/moby.git
synced 2026-08-03 06:30:59 +00:00
testutil: update WithTestLogger to use daemon.Option as return type
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user