@@ -128,7 +128,7 @@ func testIngressController(t *testing.T) {
128128 mk := NewMinikubeRunner (t , p , "--wait=false" )
129129 kr := util .NewKubectlRunner (t , p )
130130
131- mk .RunCommand ("addons enable ingress" , true )
131+ mk .MustRun ("addons enable ingress" )
132132 if err := waitForIngressControllerRunning (p ); err != nil {
133133 t .Fatalf ("Failed waiting for ingress-controller to be up: %v" , err )
134134 }
@@ -168,7 +168,7 @@ func testIngressController(t *testing.T) {
168168 }
169169 }
170170 }()
171- mk .RunCommand ("addons disable ingress" , true )
171+ mk .MustRun ("addons disable ingress" )
172172}
173173
174174func testServicesList (t * testing.T ) {
@@ -177,7 +177,10 @@ func testServicesList(t *testing.T) {
177177 mk := NewMinikubeRunner (t , p )
178178
179179 checkServices := func () error {
180- output , stderr := mk .RunCommand ("service list" , false )
180+ output , stderr , err := mk .RunCommand ("service list" , false )
181+ if err != nil {
182+ return err
183+ }
181184 if ! strings .Contains (output , "kubernetes" ) {
182185 return fmt .Errorf ("error, kubernetes service missing from output: %s, \n stderr: %s" , output , stderr )
183186 }
@@ -191,7 +194,7 @@ func testRegistry(t *testing.T) {
191194 t .Parallel ()
192195 p := profileName (t )
193196 mk := NewMinikubeRunner (t , p )
194- mk .RunCommand ("addons enable registry" , true )
197+ mk .MustRun ("addons enable registry" )
195198 client , err := kapi .Client (p )
196199 if err != nil {
197200 t .Fatalf ("getting kubernetes client: %v" , err )
@@ -210,7 +213,7 @@ func testRegistry(t *testing.T) {
210213 if err := kapi .WaitForPodsWithLabelRunning (client , "kube-system" , ps ); err != nil {
211214 t .Fatalf ("waiting for registry-proxy pods: %v" , err )
212215 }
213- ip , stderr := mk .RunCommand ("ip" , true )
216+ ip , stderr := mk .MustRun ("ip" )
214217 ip = strings .TrimSpace (ip )
215218 endpoint := fmt .Sprintf ("http://%s:%d" , ip , 5000 )
216219 u , err := url .Parse (endpoint )
@@ -259,7 +262,7 @@ func testRegistry(t *testing.T) {
259262 t .Errorf ("failed to delete pod registry-test" )
260263 }
261264 }()
262- mk .RunCommand ("addons disable registry" , true )
265+ mk .MustRun ("addons disable registry" )
263266}
264267
265268// waitForNginxRunning waits for nginx service to be up
0 commit comments