Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
takkyuuplayer committed Apr 10, 2024
1 parent a94d644 commit 43c7416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rollout.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ func (c *cage) RollOut(ctx context.Context) (*RollOutResult, error) {

log.Infof("😷 ensuring canary task container(s) to become healthy...")
if err := c.waitUntilContainersBecomeHealthy(ctx, *canaryTask.task.TaskArn, nextTaskDefinition); err != nil {
return nil, err
return throw(err)
}
log.Info("🤩 canary task container(s) is healthy!")

log.Infof("canary task '%s' ensured.", *canaryTask.task.TaskArn)
if targetGroupArn != nil {
Expand Down
3 changes: 2 additions & 1 deletion rollout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ func TestCage_RollOut_FARGATE(t *testing.T) {
ALB: albMock,
})
ctx := context.Background()
_, err := cagecli.RollOut(ctx)
res, err := cagecli.RollOut(ctx)
assert.NotNil(t, res)
assert.NotNil(t, err)

for _, task := range mocker.Tasks {
Expand Down

0 comments on commit 43c7416

Please sign in to comment.