From db7d4d8ed97c4f89431e98aad6b8cd2a068d797e Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Thu, 18 Oct 2018 11:00:09 -0700 Subject: [PATCH] internal/eks/alb: add "time.Sleep" between ALB target group health checks Signed-off-by: Gyuho Lee --- internal/eks/alb/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/eks/alb/test.go b/internal/eks/alb/test.go index 8cb76a702..97d13376e 100644 --- a/internal/eks/alb/test.go +++ b/internal/eks/alb/test.go @@ -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 } @@ -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) }