Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions tests/e2e/ensure-test-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ exports.ensureTestStack = async (client, stackName, templateBody) => {
// TODO: Feature Request: return the last describe response from the waiter result, so we can inspect failure reasons.
await waitUntilChangeSetCreateComplete({ client, maxWaitTime: 300 }, { ChangeSetName: Id });
} catch (e) {
const { Status, StatusReason = "" } = await client
.send(
new DescribeChangeSetCommand({
StackName: stackName,
ChangeSetName: Id,
})
)
.catch((e) => console.warn("Failed to describe changeset", e));
const { Status, StatusReason = "" } = await client.send(
new DescribeChangeSetCommand({
StackName: stackName,
ChangeSetName: Id,
})
);
if (Status === "FAILED" && StatusReason.includes("The submitted information didn't contain changes")) {
await client
.send(
Expand Down
Loading