Skip to content

Commit

Permalink
internal/eks/alb: add "time.Sleep" between ALB target group health ch…
Browse files Browse the repository at this point in the history
…ecks

Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Oct 18, 2018
1 parent 0a529a2 commit db7d4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/eks/alb/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func (md *embedded) TestAWSResources() error {
zap.String("target-group-arn", *tgARN),
zap.String("target-state", hs),
)

time.Sleep(10 * time.Second)
continue
}

Expand All @@ -93,14 +95,12 @@ func (md *embedded) TestAWSResources() error {

delete(healthyARNs, *tgARN)
unhealthyARNs[*tgARN] = struct{}{}

time.Sleep(10 * time.Second)
}

if len(healthyARNs) == len(desc.TargetGroups) {
break
}

time.Sleep(10 * time.Second)
}

Expand Down

0 comments on commit db7d4d8

Please sign in to comment.