diff --git a/cli/command/service/client_test.go b/cli/command/service/client_test.go index a64c81ad91..d00afe2ca2 100644 --- a/cli/command/service/client_test.go +++ b/cli/command/service/client_test.go @@ -72,6 +72,6 @@ func (f *fakeClient) NetworkInspect(ctx context.Context, networkID string, optio return types.NetworkResource{}, nil } -func newService(id string, name string, opts ...func(*swarm.Service)) swarm.Service { - return *Service(append(opts, ServiceID(id), ServiceName(name))...) +func newService(id string, name string) swarm.Service { + return *Service(ServiceID(id), ServiceName(name)) }