Skip to content

Commit

Permalink
Log CloudFormation stack failure in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cnmcavoy committed Apr 22, 2024
1 parent c50ba26 commit f3d1caa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/shared/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
By(fmt.Sprintf("Trying to create CloudFormation stack... attempt %d", count))
success := true
if err := createCloudFormationStack(e2eCtx.AWSSession, bootstrapTemplate, bootstrapTags); err != nil {
By(fmt.Sprintf("Failed to create CloudFormation stack in attempt %d: %s", count, err.Error()))
deleteCloudFormationStack(e2eCtx.AWSSession, bootstrapTemplate)
success = false
}
Expand Down

0 comments on commit f3d1caa

Please sign in to comment.