From fb0127f352580bf162cd16adfee69fb79c1c8a76 Mon Sep 17 00:00:00 2001 From: Himanshu Pandey Date: Tue, 30 Apr 2019 16:24:30 -0700 Subject: [PATCH] Fixed gofmt errors --- cmd/minikube/cmd/stop.go | 5 ++--- test/integration/start_stop_delete_test.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/minikube/cmd/stop.go b/cmd/minikube/cmd/stop.go index 458374b674..b5e4301035 100644 --- a/cmd/minikube/cmd/stop.go +++ b/cmd/minikube/cmd/stop.go @@ -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) } diff --git a/test/integration/start_stop_delete_test.go b/test/integration/start_stop_delete_test.go index ccae8dbaeb..901944bba2 100644 --- a/test/integration/start_stop_delete_test.go +++ b/test/integration/start_stop_delete_test.go @@ -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" {