Skip to content

Commit

Permalink
Log error on cleanup in e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemassa committed Aug 12, 2024
1 parent 8ddc8e8 commit e23533c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ func (t *E2ETester) Start(ctx context.Context) (*E2EResult, error) {
log.Printf("created pull request %s", url)

// defer closing pull request and delete remote branch
defer cleanUp(ctx, t, pullId, branchName) // nolint: errcheck
defer func() {
err := cleanUp(ctx, t, pullId, branchName)
if err != nil {
log.Printf("Failed to cleanup: %v", err)
}
}()

// wait for atlantis to respond to webhook and autoplan.
time.Sleep(2 * time.Second)
Expand Down

0 comments on commit e23533c

Please sign in to comment.