mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
testutil/daemon: group options under type
Signed-off-by: Sam Whited <sam@samwhited.com>
This commit is contained in:
@@ -31,7 +31,7 @@ type Daemon struct {
|
||||
// New returns a Daemon instance to be used for testing.
|
||||
// This will create a directory such as d123456789 in the folder specified by $DOCKER_INTEGRATION_DAEMON_DEST or $DEST.
|
||||
// The daemon will not automatically start.
|
||||
func New(t testingT, dockerBinary string, dockerdBinary string, ops ...func(*daemon.Daemon)) *Daemon {
|
||||
func New(t testingT, dockerBinary string, dockerdBinary string, ops ...daemon.Option) *Daemon {
|
||||
ops = append(ops, daemon.WithDockerdBinary(dockerdBinary))
|
||||
d := daemon.New(t, ops...)
|
||||
return &Daemon{
|
||||
|
||||
Reference in New Issue
Block a user