From a4018bfa720586ba515ed6ce12c80ee9b1978603 Mon Sep 17 00:00:00 2001 From: Himanshu Pandey Date: Thu, 2 May 2019 09:04:08 -0700 Subject: [PATCH] Fixed the build error and formatting --- test/integration/start_stop_delete_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/start_stop_delete_test.go b/test/integration/start_stop_delete_test.go index 901944bba..2f6ad27d1 100644 --- a/test/integration/start_stop_delete_test.go +++ b/test/integration/start_stop_delete_test.go @@ -78,8 +78,8 @@ func TestStartStop(t *testing.T) { } // check for the current-context before and after the stop - kubeRunner = util.NewKubeCtlRunner() - currentContext = kubeRunner.RunCommand("config", "current-context") + kubeRunner := util.NewKubeCtlRunner() + currentContext := kubeRunner.RunCommand("config", "current-context") if currentContext != "minikube" { t.Fatalf("current-context not set to minikube") } @@ -89,7 +89,7 @@ func TestStartStop(t *testing.T) { return r.CheckStatusNoFail(state.Stopped.String()) } - currentContext = kubeRunner.RunCommand("config", "current-context") + currentContext := kubeRunner.RunCommand("config", "current-context") if currentContext != "" { t.Fatalf("Failed to unset the current-context") } -- GitLab