@@ -27,7 +27,6 @@ func TestGetOptions(t *testing.T) {
2727 t * testing.T ,
2828 additionalArgs []string ,
2929 withServerOptions bool ,
30- withControllerOptions bool ,
3130 withNodeOptions bool ,
3231 ) * Options {
3332 flagSet := flag .NewFlagSet ("test-flagset" , flag .ContinueOnError )
@@ -85,7 +84,7 @@ func TestGetOptions(t *testing.T) {
8584 {
8685 name : "no controller mode given - expect all mode" ,
8786 testFunc : func (t * testing.T ) {
88- options := testFunc (t , nil , true , true , true )
87+ options := testFunc (t , nil , true , true )
8988
9089 if options .DriverMode != driver .AllMode {
9190 t .Fatalf ("expected driver mode to be %q but it is %q" , driver .AllMode , options .DriverMode )
@@ -96,7 +95,7 @@ func TestGetOptions(t *testing.T) {
9695 {
9796 name : "all mode given - expect all mode" ,
9897 testFunc : func (t * testing.T ) {
99- options := testFunc (t , []string {"all" }, true , true , true )
98+ options := testFunc (t , []string {"all" }, true , true )
10099
101100 if options .DriverMode != driver .AllMode {
102101 t .Fatalf ("expected driver mode to be %q but it is %q" , driver .AllMode , options .DriverMode )
@@ -106,7 +105,7 @@ func TestGetOptions(t *testing.T) {
106105 {
107106 name : "controller mode given - expect controller mode" ,
108107 testFunc : func (t * testing.T ) {
109- options := testFunc (t , []string {"controller" }, true , true , false )
108+ options := testFunc (t , []string {"controller" }, true , false )
110109
111110 if options .DriverMode != driver .ControllerMode {
112111 t .Fatalf ("expected driver mode to be %q but it is %q" , driver .ControllerMode , options .DriverMode )
@@ -116,7 +115,7 @@ func TestGetOptions(t *testing.T) {
116115 {
117116 name : "node mode given - expect node mode" ,
118117 testFunc : func (t * testing.T ) {
119- options := testFunc (t , []string {"node" }, true , false , true )
118+ options := testFunc (t , []string {"node" }, true , true )
120119
121120 if options .DriverMode != driver .NodeMode {
122121 t .Fatalf ("expected driver mode to be %q but it is %q" , driver .NodeMode , options .DriverMode )
0 commit comments