diff --git a/rollout.go b/rollout.go index f07dae0..b9e74db 100644 --- a/rollout.go +++ b/rollout.go @@ -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 { diff --git a/rollout_test.go b/rollout_test.go index 8fd6074..1417633 100644 --- a/rollout_test.go +++ b/rollout_test.go @@ -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 {