-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to fix the unit test bug #121
Conversation
931b818
to
a3daffc
Compare
a3daffc
to
1294395
Compare
cmd/e2e/utilities.go
Outdated
@@ -191,6 +191,13 @@ func verifyGameServerBuild(ctx context.Context, buildID, buildName string, state | |||
return fmt.Errorf("expected %d crashes, got %d", state.crashesCount, gameServerBuild.Status.CrashesCount) | |||
} | |||
|
|||
// 5 is the default, we should parameterize that | |||
if gameServerBuild.Status.CrashesCount >= 5 && gameServerBuild.Status.Health != "Unhealthy" { | |||
return fmt.Errorf("expected %s health, got %s", "Unhealthy", gameServerBuild.Status.Health) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf("expected %s health, got %s", "Unhealthy", gameServerBuild.Status.Health) | |
return fmt.Errorf("expected %s status, got %s", "Unhealthy", gameServerBuild.Status.Health) |
cmd/e2e/utilities.go
Outdated
if gameServerBuild.Status.CrashesCount >= 5 && gameServerBuild.Status.Health != "Unhealthy" { | ||
return fmt.Errorf("expected %s health, got %s", "Unhealthy", gameServerBuild.Status.Health) | ||
} else if gameServerBuild.Status.CrashesCount < 5 && gameServerBuild.Status.Health != "Healthy" { | ||
return fmt.Errorf("expected %s health, got %s", "Healthy", gameServerBuild.Status.Health) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf("expected %s health, got %s", "Healthy", gameServerBuild.Status.Health) | |
return fmt.Errorf("expected %s status, got %s", "Healthy", gameServerBuild.Status.Health) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one minor suggestion on wording
Fixes #118