Skip to content

Commit

Permalink
try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Apr 7, 2020
1 parent 2425b06 commit 48b4b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/instancegroups/instancegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func (c *RollingUpdateCluster) tryValidateCluster(duration time.Duration) bool {
if err == nil && len(result.Failures) == 0 && c.ValidateTimes > 0 {
c.ValidateSucceeded++
if c.ValidateSucceeded < c.ValidateTimes {
klog.Infof("Cluster validated; revalidating [%d/%d] times to make sure it does not flap.", c.ValidateSucceeded, c.ValidateTimes)
klog.Infof("Cluster validated; revalidating %d time(s) to make sure it does not flap.", c.ValidateTimes-c.ValidateSucceeded)
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/instancegroups/rollingupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func getTestSetup() (*RollingUpdateCluster, *awsup.MockAWSCloud, *kopsapi.Cluste
ClusterValidator: &successfulClusterValidator{},
FailOnValidate: true,
ValidateTickDuration: 1 * time.Millisecond,
ValidateTimes: 2,
ValidateTimes: 1,
ValidateSucceeded: 0,
}

Expand Down

0 comments on commit 48b4b95

Please sign in to comment.