testutil/daemon: group options under type

Signed-off-by: Sam Whited <sam@samwhited.com>
This commit is contained in:
Sam Whited
2019-09-17 12:44:35 -05:00
parent 92cc603036
commit 41adef29f5
5 changed files with 15 additions and 12 deletions

View File

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