Skip to content

Commit ab952cb

Browse files
authored
fix(tests): remove the catch statement (#7081)
1 parent 8883679 commit ab952cb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/e2e/ensure-test-stack.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ exports.ensureTestStack = async (client, stackName, templateBody) => {
4545
// TODO: Feature Request: return the last describe response from the waiter result, so we can inspect failure reasons.
4646
await waitUntilChangeSetCreateComplete({ client, maxWaitTime: 300 }, { ChangeSetName: Id });
4747
} catch (e) {
48-
const { Status, StatusReason = "" } = await client
49-
.send(
50-
new DescribeChangeSetCommand({
51-
StackName: stackName,
52-
ChangeSetName: Id,
53-
})
54-
)
55-
.catch((e) => console.warn("Failed to describe changeset", e));
48+
const { Status, StatusReason = "" } = await client.send(
49+
new DescribeChangeSetCommand({
50+
StackName: stackName,
51+
ChangeSetName: Id,
52+
})
53+
);
5654
if (Status === "FAILED" && StatusReason.includes("The submitted information didn't contain changes")) {
5755
await client
5856
.send(

0 commit comments

Comments
 (0)