提交 a4018bfa 编写于 作者: H Himanshu Pandey

Fixed the build error and formatting

上级 fb0127f3
...@@ -78,8 +78,8 @@ func TestStartStop(t *testing.T) { ...@@ -78,8 +78,8 @@ func TestStartStop(t *testing.T) {
} }
// check for the current-context before and after the stop // check for the current-context before and after the stop
kubeRunner = util.NewKubeCtlRunner() kubeRunner := util.NewKubeCtlRunner()
currentContext = kubeRunner.RunCommand("config", "current-context") currentContext := kubeRunner.RunCommand("config", "current-context")
if currentContext != "minikube" { if currentContext != "minikube" {
t.Fatalf("current-context not set to minikube") t.Fatalf("current-context not set to minikube")
} }
...@@ -89,7 +89,7 @@ func TestStartStop(t *testing.T) { ...@@ -89,7 +89,7 @@ func TestStartStop(t *testing.T) {
return r.CheckStatusNoFail(state.Stopped.String()) return r.CheckStatusNoFail(state.Stopped.String())
} }
currentContext = kubeRunner.RunCommand("config", "current-context") currentContext := kubeRunner.RunCommand("config", "current-context")
if currentContext != "" { if currentContext != "" {
t.Fatalf("Failed to unset the current-context") t.Fatalf("Failed to unset the current-context")
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册