diff --git a/test/integration/start_stop_delete_test.go b/test/integration/start_stop_delete_test.go index 901944bba20547746e6c724e7d68ef6c79ab4a59..2f6ad27d1aabbd90be09826deb6599d79ddc38bb 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") }