Skip to content

Commit

Permalink
Make WaitForFleetCondition take up to 5 minutes
Browse files Browse the repository at this point in the history
Should fix flakiness in autoscaler tests.
  • Loading branch information
markmandel committed Oct 8, 2018
1 parent cd874a2 commit 56adbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (f *Framework) WaitForGameServerState(gs *v1alpha1.GameServer, state v1alph

// WaitForFleetCondition waits for the Fleet to be in a specific condition
func (f *Framework) WaitForFleetCondition(flt *v1alpha1.Fleet, condition func(fleet *v1alpha1.Fleet) bool) error {
err := wait.PollImmediate(2*time.Second, 120*time.Second, func() (bool, error) {
err := wait.PollImmediate(2*time.Second, 5 * time.Minute, func() (bool, error) {
fleet, err := f.AgonesClient.StableV1alpha1().Fleets(flt.ObjectMeta.Namespace).Get(flt.ObjectMeta.Name, metav1.GetOptions{})
if err != nil {
return true, err
Expand Down

0 comments on commit 56adbc7

Please sign in to comment.