Skip to content

Commit

Permalink
Updated the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Pandey committed May 7, 2019
1 parent e23a784 commit 64f990c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/integration/start_stop_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,15 @@ func TestStartStop(t *testing.T) {
return r.CheckStatusNoFail(state.Stopped.String())
}

currentContext, err = kubectlRunner.RunCommand([]string{"config", "current-context"})
if err != nil {
t.Fatalf("Failed to fetch current-context")
}
if strings.TrimRight(string(currentContext), "\n") != "" {
t.Fatalf("Failed to unset the current-context %q", string(currentContext))
}

if err := util.Retry(t, checkStop, 5*time.Second, 6); err != nil {
t.Fatalf("timed out while checking stopped status: %v", err)
}

// running this command results in error when the current-context is not set
if err := r.Run("config current-context"); err != nil {
t.Logf("current-context is not set to minikube")
}

r.Start(test.args...)
r.CheckStatus(state.Running.String())

Expand Down

0 comments on commit 64f990c

Please sign in to comment.