Skip to content

Commit f7829b0

Browse files
authored
feat: Log error on cleanup in e2e (#4835)
1 parent 3513b08 commit f7829b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

e2e/e2e.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ func (t *E2ETester) Start(ctx context.Context) (*E2EResult, error) {
114114
log.Printf("created pull request %s", url)
115115

116116
// defer closing pull request and delete remote branch
117-
defer cleanUp(ctx, t, pullId, branchName) // nolint: errcheck
117+
defer func() {
118+
err := cleanUp(ctx, t, pullId, branchName)
119+
if err != nil {
120+
log.Printf("Failed to cleanup: %v", err)
121+
}
122+
}()
118123

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

0 commit comments

Comments
 (0)