added check for timetostop status

pull/9793/head
Tharun 2020-12-04 16:05:24 +05:30
parent 3f57033c60
commit 35e2ce2dcf
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ func ensureMinikubeStatus(ctx context.Context, t *testing.T, profile, wantStatus
if got != wantStatus {
return fmt.Errorf("expected post-stop host status to be -%q- but got *%q*", state.Stopped, got)
}
got = Status(ctx, t, Target(), profile, "TimeToStop", profile)
if got != "Nonexistent" {
return fmt.Errorf("expected post-stop timetostop status to be -%q- but got *%q*", "Nonexistent", got)
}
return nil
}
if err := retry.Expo(checkStatus, time.Second, time.Minute); err != nil {