Conversation
"", | ||
) | ||
printer.SubStep("Cleaning up unused change set", 1, true, true) | ||
_, err := cf.DeleteChangeSet( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing a test failure, since the cfn wrapper is called client
rather than cf
.
) | ||
} | ||
printer.Stop() | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please not call os.Exit(1)
directly? It complicates testing. Use printer.Fatal
, or refactor the function to return an error, and let it cascade back out of the testable path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good pickup, this was a quick fix, not ideal to merge in like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After double checking, I've noticed that there's more os.Exit
calls scattered around the place. I think I'll make a pass at trying to refactor those out.
This PR has some fixes to minor regressions.