Fixed gofmt errors

pull/4177/head
Himanshu Pandey 2019-04-30 16:24:30 -07:00
parent c8af727416
commit fb0127f352
2 changed files with 3 additions and 4 deletions

View File

@ -27,11 +27,10 @@ import (
"k8s.io/minikube/pkg/minikube/cluster"
pkg_config "k8s.io/minikube/pkg/minikube/config"
"k8s.io/minikube/pkg/minikube/console"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/exit"
"k8s.io/minikube/pkg/minikube/machine"
pkgutil "k8s.io/minikube/pkg/util"
"k8s.io/minikube/pkg/minikube/constants"
)
// stopCmd represents the stop command
@ -73,7 +72,7 @@ itself, leaving all files intact. The cluster can be started again with the "sta
}
machineName := pkg_config.GetMachineName()
err = pkgutil.UnsetCurrentContext( constants.KubeconfigPath, machineName)
err = pkgutil.UnsetCurrentContext(constants.KubeconfigPath, machineName)
if err != nil {
exit.WithError("update config", err)
}

View File

@ -77,7 +77,7 @@ func TestStartStop(t *testing.T) {
t.Fatalf("IP command returned an invalid address: %s", ip)
}
// check for the context
// check for the current-context before and after the stop
kubeRunner = util.NewKubeCtlRunner()
currentContext = kubeRunner.RunCommand("config", "current-context")
if currentContext != "minikube" {