Skip to content

Commit

Permalink
add check for minikube status after cancelling scheduled stops in test
Browse files Browse the repository at this point in the history
Signed-off-by: Tharun <rajendrantharun@live.com>
  • Loading branch information
tharun208 committed Mar 24, 2021
1 parent 29c7163 commit 0ae3e6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/integration/scheduled_stop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestScheduledStopWindows(t *testing.T) {
time.Sleep(5 * time.Second)
// make sure minikube status is "Stopped"
ensureMinikubeStatus(ctx, t, profile, "Host", state.Stopped.String())
// make sure minikube timtostop is "Nonexistent"
// make sure minikube TimetoStop is "NonExistent"
ensureMinikubeStatus(ctx, t, profile, "TimeToStop", "Nonexistent")
}

Expand Down Expand Up @@ -105,7 +105,10 @@ func TestScheduledStopUnix(t *testing.T) {
// sleep 12 just to be safe
stopMinikube(ctx, t, profile, []string{"--cancel-scheduled"})
time.Sleep(12 * time.Second)
// make sure minikube status is "Running"
ensureMinikubeStatus(ctx, t, profile, "Host", state.Running.String())
// make sure minikube TimetoStop is "NonExistent"
ensureMinikubeStatus(ctx, t, profile, "TimeToStop", "Nonexistent")

// schedule another stop, make sure minikube status is "Stopped"
stopMinikube(ctx, t, profile, []string{"--schedule", "5s"})
Expand All @@ -115,7 +118,7 @@ func TestScheduledStopUnix(t *testing.T) {

// make sure minikube status is "Stopped"
ensureMinikubeStatus(ctx, t, profile, "Host", state.Stopped.String())
// make sure minikube timtostop is "Nonexistent"
// make sure minikube TimetoStop is "NonExistent"
ensureMinikubeStatus(ctx, t, profile, "TimeToStop", "Nonexistent")
}

Expand Down

0 comments on commit 0ae3e6b

Please sign in to comment.