Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
corverroos committed Jun 15, 2022
1 parent a2eaaaa commit b9913eb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions testutil/compose/compose/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,15 @@ func newAutoCmd(tmplCallback func(data *compose.TmplData)) *cobra.Command {
defer cancel()
}

defer func() {
err = execDown(rootCtx, *dir)
if err != nil {
log.Error(rootCtx, "Exec down", err)
}
}()

alerts, err := startAlertCollector(ctx, *dir)
if err != nil {
return err
}

defer func() {
_ = execDown(rootCtx, *dir)
}()

if err := execUp(ctx, *dir); err != nil && !errors.Is(err, context.DeadlineExceeded) {
return err
}
Expand Down

0 comments on commit b9913eb

Please sign in to comment.